Replies: 1 comment
-
Hey, I'm currently having a similar issue when augmenting the JWT and session types to include custom properties (#12674) with the Discord provider. Did you manage to solve this? Edit: nevermind, I just solved my issue myself. See my linked discussion 😅 |
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
-
Hi all,
I am doing OIDC with a local duende server in auth.js beta. I am using the callbacks to get the profile info from the token at the end of the flow but I am having a hard time getting typescript to let me persist this info into the session.
I see 2 callbacks jwt({token, profile, trigger}) and session({session, token}) that I can use and what I am doing is the following:
Typescript really doesnt want me to do this - it thinks session is some other shape:
I have the session strategy as "jwt" so Im not sure how to get ts to choose the other params type, as this looks the database one. Can anyone give me a pointer in the right direction?
Thank you!
Beta Was this translation helpful? Give feedback.
All reactions