Closed jerriclynsjohn closed 6 months ago
I have the following code
const googleScopes = [ 'openid', 'email', 'profile', // Gmail API scopes 'https://www.googleapis.com/auth/gmail.readonly', // People API scopes 'https://www.googleapis.com/auth/contacts.readonly' ]; const state = generateState(); const codeVerifier = generateCodeVerifier(); const url = await google.createAuthorizationURL(state, codeVerifier, { scopes: googleScopes });
and to get the token
const tokens: GoogleTokens = await google.validateAuthorizationCode(code, storedCodeVerifier);
tokens.refreshToken is always null, even if I'm authenticating the email for the first time.
tokens.refreshToken
Please read the docs
https://arctic.js.org/providers/google#get-refresh-token
I have the following code
and to get the token
tokens.refreshToken
is always null, even if I'm authenticating the email for the first time.