-
Notifications
You must be signed in to change notification settings - Fork 54
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
Updgrade to the latest versions of AppAuth-JS. #3
Conversation
pixtron
commented
Nov 9, 2018
- upgrade @openid/appauth to ^1.1.1
- upgrade electron to ^3.0.8
- upgrade typescript to ^3.1.6
* upgrade @openid/appauth to ^1.1.1 * upgrade electron to ^3.0.8 * upgrade typescript to ^3.1.6
Are there plans to merge this in the near future? |
Just realized that here was an outstanding PR against the sample repo. |
flow.ts
Outdated
@@ -83,7 +84,13 @@ export class AuthFlow { | |||
this.notifier.setAuthorizationListener((request, response, error) => { | |||
log("Authorization request complete ", request, response, error); | |||
if (response) { | |||
this.makeRefreshTokenRequest(response.code) | |||
let codeVerifier: string | undefined; | |||
|
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.
Nit: Remove unnecessary line breaks.
flow.ts
Outdated
@@ -132,19 +139,27 @@ export class AuthFlow { | |||
); | |||
} | |||
|
|||
private makeRefreshTokenRequest(code: string): Promise<void> { | |||
private makeRefreshTokenRequest(code: string, codeVerifier?: string): Promise<void> { |
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.
Given that you are always passing codeVerifier
a better type would be codeVerifier: string|undefined
@tikurahul sorry i saw your comments, but then got distracted by something/someone and just came back today. Changed the PR based to your review. |