We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
the refreshToken every time return null
i Enabled offline_access from app settings
this.auth0 = new auth0.WebAuth({ domain:'AUTH0_DOMAIN', audience:'AUTH0_API_AUDIENCE', clientID:'AUTH0_CLIENT_ID'), redirectUri: window.location.origin + '/callback', responseType: 'token id_token', scope: ['openid', 'profile', 'email', 'user_metadata', 'offline_access'].join(' '), }); silentAuth = () => { return new Promise((resolve, reject) => { this.auth0.checkSession({}, (err, authResult) => { if (err) return reject(err); if (!err) { resolve(authResult); } }); }); };
this json
{ "accessToken": "xxxx", "idToken": "xxxxx", "idTokenPayload": {... details } "appState": "xxx", "refreshToken": null, "state": "xxx", "expiresIn": 7200, "tokenType": "Bearer", "scope": "openid profile email offline_access" }
when used react auth0 i can get refreshToken
1-silentAuth
No response
9.26.1
Edge, Other
The text was updated successfully, but these errors were encountered:
According to the official openid documentation: https://openid.net/specs/openid-connect-core-1_0.html#Authentication -> what you're trying to achieve is not possible:
response_type: 'token id_token'
but the implicit flow does not support refresh tokens.
What you have to do is change your flow to either:
response_type: 'code id_token token'
response_type: 'code token'
Sorry, something went wrong.
No branches or pull requests
Checklist
Description
the refreshToken every time return null
i Enabled offline_access from app settings
this json
when used react auth0 i can get refreshToken
Reproduction
1-silentAuth
Additional context
No response
auth0-js version
9.26.1
Which browsers have you tested in?
Edge, Other
The text was updated successfully, but these errors were encountered: