You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Some authentication services return a "code" as part of the OAuth flow and that eventually needs to be converted into a full token. It'd be great to be able to use afterResponse to perform an API request to convert the temporary code into the token?
The text was updated successfully, but these errors were encountered:
I'm glad you brought this up however I want to give this a bit more thought than what you're currently proposing. This lib was originally written before the implicit grant became "legacy" (see here for context) so really what this lib should do is now fully support the authorization code grant more formally vs utilizing a hook.
I'll try to get something out by end of week.
ricokahler
changed the title
await afterResponse
Support authorization code grant
Jun 16, 2020
@ricokahler thank you for your quick & very interesting reply! I would be happy to help. Looking at the details, it really looks like the flow just needs to have an optional "getToken" function after the initial flow to convert code => token, and an optional "refreshToken" if available. Can I help?
ricokahler
changed the title
Support authorization code grant
Support authorization code grant w/ PKCE
Feb 23, 2021
Some authentication services return a "code" as part of the OAuth flow and that eventually needs to be converted into a full token. It'd be great to be able to use afterResponse to perform an API request to convert the temporary code into the token?
The text was updated successfully, but these errors were encountered: