Skip to content
New issue

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

Why is refresh token null? #106

Open
ivana-brkic opened this issue Oct 26, 2020 · 4 comments
Open

Why is refresh token null? #106

ivana-brkic opened this issue Oct 26, 2020 · 4 comments

Comments

@ivana-brkic
Copy link

Do I need to call Auth0 API to get refresh token or there is a way with your library to do this?

@jschroed91
Copy link

Are you adding the offline_access scope to the configuration? When that scope is provided, the auth result should include a refresh_token.

https://auth0.com/docs/tokens/refresh-tokens/get-refresh-tokens

@jschroed91
Copy link

For more info here, you can use the auth0_params prop on the AuthProvider to configure the scope to include offline_access. The default value of scope is "openid profile email"

<AuthProvider
  // ...
  auth0_params={{
    scope: 'openid profile email offline_access'
  }}
>
  {children}
</AuthProvider>

@pawel3ala
Copy link

@ivana-brkic hej, still in need? I have just figured that out ;)

@ivana-brkic
Copy link
Author

Sorry for answering this late. Didn't see notification... Well I am no longer working on that project so I really can't check this answer. As I can recall I have tried that long before I posted this question, but I had some annoying bugs with that scope definition. Could be it's something with auth0 settings, not related with library. You can close this issue, I hope someone will get help from it.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants