Skip to content

Commit 97feae7

Browse files
authoredSep 28, 2022
fix(types): export SessionContext #5437 (#5438)
Co-authored-by: Lluis Agusti <hi@llu.lu> Fixes #5437
1 parent 2494589 commit 97feae7

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed
 

‎packages/next-auth/src/react/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -74,7 +74,7 @@ export type SessionContextValue<R extends boolean = false> = R extends true
7474
| { data: Session; status: "authenticated" }
7575
| { data: null; status: "unauthenticated" | "loading" }
7676

77-
const SessionContext = React.createContext<SessionContextValue | undefined>(
77+
export const SessionContext = React.createContext<SessionContextValue | undefined>(
7878
undefined
7979
)
8080

0 commit comments

Comments
 (0)
Please sign in to comment.