-
-
Notifications
You must be signed in to change notification settings - Fork 110
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
Add a way to set a custom middleware for refreshing the access token #86
Comments
Do you have an example of how it would look like? |
Thanks for the response! This is what I need and what I was not able to build with this plugin. I think the example is pretty : straight forward:
In the code the first link is always the AuthLink. If there would be some option like a
|
@lassesteffen please take a look on this PR and check whether it would work for your case. It allows to pass a few pre-auth links. So I think using like the following should make the deal:
|
Looks good to me! |
Great! |
@matrunchyk You forgot to add
|
Currently we are not able to add a custom middleware for e. g. refreshing an access token. This stems from the fact, that the authLink is the first link, and I can not easily add another link before this authLink (which sets the token).
Am I missing something or is there just no support for this?
The text was updated successfully, but these errors were encountered: