Skip to content

Commit

Permalink
Update header fetching to use async/await
Browse files Browse the repository at this point in the history
  • Loading branch information
sd109 committed Nov 14, 2024
1 parent c08d3e7 commit 4c314a1
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions web/src/app/auth/login/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -75,8 +75,8 @@ const Page = async (props: {
return redirect(authUrl);
}

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

return (
<AuthFlowContainer>
Expand Down

0 comments on commit 4c314a1

Please sign in to comment.