oauth2orize icon indicating copy to clipboard operation
oauth2orize copied to clipboard

How to send refresh token next to access token after authorization?

Open felixfrtz opened this issue 7 years ago • 1 comments

Hey,

I am working on an implementation which requires that after the user approved a client, the client needs to receive the refresh_token as well next to the access_token. I already implemented the refresh_token on the token route, meaning that retrieving a new access_token with a given refresh_token works. However, tokne.js doesn't seem to provide an input for a refresh_token.

What I expected is that one calls done(null, accessToken, refreshToken) and both get sent. How can this be implemented?

felixfrtz avatar Nov 22 '17 13:11 felixfrtz

@warhost checkout my answer to issue #222 and let me know if that is what you needed.

jesseg34 avatar Apr 09 '18 19:04 jesseg34