-
Notifications
You must be signed in to change notification settings - Fork 925
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
Full support "Authorization Code Grant" & Refresh Token #145
Conversation
robsontenorio
commented
Apr 15, 2018
•
edited
Loading
edited
- Fix url
- Add missing parameters for "Authorization Code Grant" flow.
- Automatically store the refresh_token, if it exists
@pi0 thanks for approval! Effectively when it will be merged? |
As this is a non breaking one will be shipped in next semver/minor release :) Thanks for yoyr help 🤗 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Just a small variable naming issue to me.
lib/schemes/oauth2.js
Outdated
@@ -91,19 +91,30 @@ export default class Oauth2Scheme { | |||
// accessToken/idToken | |||
let token = parsedQuery[this.options.token_key || 'access_token'] | |||
|
|||
// refresh token | |||
let refresh_token = parsedQuery[this.options.refresh_token_key || 'refresh_token'] |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you use camel casing instead of underscore casing?
@breakingrobot @pi0 done! |