Get SessionId to send it to own backend #4458
Unanswered
asurovenko-zeta
asked this question in
Help
Replies: 1 comment 1 reply
-
Did you try using the session callback? callbacks: {
async session({ session, token, user }) {
session.sessionId = sessionId
return session
}
} |
Beta Was this translation helpful? Give feedback.
1 reply
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
Question 💬
I need to provide sessionId to my own backend to validate access to endpoint. Can't find it in google so far
How to reproduce ☕️
const session = useSession();
I already have session object, but there's no sessionId value from database.
Contributing 🙌🏽
Yes, I am willing to help answer this question in a PR
Beta Was this translation helpful? Give feedback.
All reactions