Skip to content

Commit

Permalink
fix thing
Browse files Browse the repository at this point in the history
  • Loading branch information
rhysmdnz committed Nov 16, 2024
1 parent 6a75da9 commit 09d866b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/lib/firebase/firebase.ts
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ async function getAppRouterSession() {
const { cookies } = await import("next/headers");

try {
return cookies().get("__session")?.value;
return (await cookies()).get("__session")?.value;
} catch (error) {
// cookies() throws when called from pages router
return undefined;
Expand Down

0 comments on commit 09d866b

Please sign in to comment.