Skip to content
Discussion options

You must be logged in to vote

For anyone else who comes across this, you can pass the id to the user object in the session callback..

...
callbacks: {
    async session({ session, token, user }) {
      // Send properties to the client, like the id
      session.user.id = token.sub;
      return session;
    },
  },
...

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by lsbyerley
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
1 participant