Accessing sign in credentials when using sessions on db #2983
Unanswered
AdamBoyleSignpostr
asked this question in
Help
Replies: 0 comments
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.
-
Question 💬
I am trying to capture the sign in tokens returned from my OpenID provider, before they are placed as an entry in Account.
I can capture the ID of the user within the session callback, but, I do no see how I can capture this information from the callbacks unless I have set JWT option to true, which is not what I want.
I use the id_token from the provider so much that I want to be able to capture it in a callback, and attach it to the session.
Any thoughts?
How to reproduce ☕️
session: async ({ session, user}) => {
if (user) session.userId = user.id;
return session;
},
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions