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

Allow custom parameters when refreshing for access token #369

Closed
hden opened this issue Apr 14, 2021 · 1 comment · Fixed by #507
Closed

Allow custom parameters when refreshing for access token #369

hden opened this issue Apr 14, 2021 · 1 comment · Fixed by #507
Labels
enhancement New feature or request

Comments

@hden
Copy link

hden commented Apr 14, 2021

Describe the problem you'd like to have solved

Quoting #136 .

It would be helpful to let us force an access token refresh rather than waiting for them to expire. The scenario I've run into is updating a user's claims after they've updated their profile.

The scenario I've run into is that I need to pass custom parameter to a rule (or action) when doing so.

Describe the ideal solution

Adding a customParams option to the getAccessToken method, like so: getAccessToken({ customParams: { foo: "bar" } })

Alternatives and current work-arounds

None that I known of.

@adamjmcgrath adamjmcgrath added the enhancement New feature or request label Apr 16, 2021
@adamjmcgrath
Copy link
Contributor

HI @hden - thanks for raising this

Looks like a sensible addition that we could add, I'm not sure when we'll get round to it but I'll leave this open in case anyone wants to submit a PR.

In the meantime, you can work around this by doing the refresh_grant yourself, see https://auth0.com/docs/api/authentication#refresh-token

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

Successfully merging a pull request may close this issue.

2 participants