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

useAuth0 allow refreshToken functionality #625

Closed
5 tasks done
shawna-donnelly opened this issue May 18, 2023 · 2 comments
Closed
5 tasks done

useAuth0 allow refreshToken functionality #625

shawna-donnelly opened this issue May 18, 2023 · 2 comments
Labels

Comments

@shawna-donnelly
Copy link

Checklist

  • I have looked into the Readme, Examples, and FAQ 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.

Describe the problem you'd like to have solved

I am working to refresh a user's authorization scope after an invitation code is redeemed. Currently, I have to send prompt:consent to allow for the scope that was added on redeeming the invitation code. I haven't been able to find a way to refresh the token using useAuth0 and do not see the getTokenSilently method being available, either.

Describe the ideal solution

I'd be able to refresh a user's scope without the user even noticing that something is happening.

Alternatives and current workarounds

I am using prompt:consent and am about to use the Auth0 class directly to refresh my token.

Additional context

No response

@shawna-donnelly shawna-donnelly added the feature request A feature has been asked for or suggested by the community label May 18, 2023
@poovamraj
Copy link
Contributor

@shawna-donnelly getCredentials method has a scope parameter - Link. You can add the required scopes to this method and you can get back an access token with these scopes.

@poovamraj poovamraj added question and removed feature request A feature has been asked for or suggested by the community labels May 19, 2023
@poovamraj
Copy link
Contributor

@shawna-donnelly hope this works. we will close this thread now. Please let us know if you have more doubts and we can reopen this.

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

No branches or pull requests

2 participants