Open
Description
Checklist
- The issue can be reproduced in the auth0-js sample app (or N/A).
- I have looked into the Readme and Examples, and have not found a suitable solution or answer.
- I have looked into the API documentation and have not found a suitable solution or answer.
- I have searched the issues and have not found a suitable solution or answer.
- I have searched the Auth0 Community forums and have not found a suitable solution or answer.
- I agree to the terms within the Auth0 Code of Conduct.
Description
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
Reproduction
1-silentAuth
Additional context
No response
auth0-js version
9.26.1
Which browsers have you tested in?
Edge, Other