Can we add generic session type to useSession and getSession? #2239
github0013
started this conversation in
Ideas
Replies: 1 comment
-
Check out this documentation for augmenting your |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Correct me if I am wrong, but because we can add attributes to session object, do we want to pass generic type to
useSession
andgetSession
?next-auth/types/client.d.ts
Line 26 in fb04ab4
next-auth/types/client.d.ts
Line 35 in fb04ab4
To something like this?
Beta Was this translation helpful? Give feedback.
All reactions