Skip to content
Discussion options

You must be logged in to vote

Got it by changing the following 🙂

  callbacks: {
    async jwt({ token, account, profile }) {
      // Persist the OAuth access_token to the token right after signin
      // console.log(profile.verified)
      if (account) {
        token.accessToken = account.access_token;
        token.id = profile.id;
        token.email = profile.email;
        token.profile = profile;
      }
      return token;
    },
    async session({ session, token }) {
      // Send properties to the client, like an access_token from a provider.
      // session.accessToken = token.accessToken; // Dont forget to remove the token later boi!
      session.user = {
        email: token.email,
        id: token.id,

Replies: 1 comment

Comment options

You must be logged in to vote
0 replies
Answer selected by ArkShocer
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