Skip to content
Discussion options

You must be logged in to vote

So the access_token got renamed to oauth_token & refresh_token got renamed to oauth_token_secret:

callbacks: {
    async jwt({ token, account, user }) {
      if (account) {
        token[account.provider] = {
          accessToken: account.oauth_token,
          refreshToken: account.oauth_token_secret,
        }
      }

      return token
    },
  },

Replies: 3 comments 6 replies

Comment options

You must be logged in to vote
1 reply
@deadcoder0904
Comment options

Comment options

You must be logged in to vote
4 replies
@deadcoder0904
Comment options

@balazsorban44
Comment options

@deadcoder0904
Comment options

@deadcoder0904
Comment options

Comment options

You must be logged in to vote
1 reply
@balazsorban44
Comment options

Answer selected by deadcoder0904
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Help
Labels
None yet
2 participants