Skip to content

Commit 4c314a1

Browse files
committed
Update header fetching to use async/await
1 parent c08d3e7 commit 4c314a1

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

web/src/app/auth/login/page.tsx

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -75,8 +75,8 @@ const Page = async (props: {
7575
return redirect(authUrl);
7676
}
7777

78-
const userHeader = headers().get('x-remote-user');
79-
const groupsHeader = headers().get('x-remote-group');
78+
const userHeader = (await headers()).get('x-remote-user');
79+
const groupsHeader = (await headers()).get('x-remote-group');
8080

8181
return (
8282
<AuthFlowContainer>

0 commit comments

Comments
 (0)