node-oauth2-server
node-oauth2-server copied to clipboard
scope in getAccessToken
I want to use JWT for my access tokens , but for some scope I want to revoke JWT immediately
In model.getAccessToken() , How can I access requested scope? I want to verify JWT in some scopes and run a database query on other scopes
@oauthjs reply please
:-(
@sm2017 maybe try to pass scope through generateAccessToken method ?
v3.1.0 should support this - you'll have access to the request context within all model methods. You can try it out now by using next for the version in your package.json.
@mjsalinger I'm also trying to get the req scope inside saveToken, does 3.1.1 capable of this ?