Open steffansluis opened 8 years ago
Is it alright , if the validateAccessToken request responds with a token object example { "Valid":"true", "user":"JP", "scope":"read" }
Is this approach not recommended and if yes please mention the reason .
I want to use node-oauth2-server v3.0.0-b2 with JWT as access and refresh tokens.
but generateAccessToken and generateRefreshToken no longer have parameters of the user and client available.
JWT is standard (RFC 7519) so I want to add as user object and client object in generateAccessToken and generateRefreshToken functions
This is fixed by PR #303.
@maxtruxa Any news on this? Your PR is Last 2 months
It's not my PR, but if you're interested in the project status see #313. I'm not a maintainer, so I can't tell you when PRs are getting merged in.
I am using JWT as access and refresh tokens, and it seems that in version 3.0.0 the
generateAccessToken
andgenerateRefreshToken
functions no longer have the user and client available, whereas before they were available on thereq
object. Any reason as to why they are no longer available? I realize that the information is available in the scope of thesaveToken
function, however that means having to decode the JWT, adding additional info and resigning it.