-
Notifications
You must be signed in to change notification settings - Fork 64
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
Avoid re-prompting a user login when refresh token is processed #3749
Conversation
// may want to improve handling | ||
// eslint-disable-next-line @typescript-eslint/no-floating-promises | ||
this.useEndpointForAuthorization(resolve, reject) | ||
if (doUserFlow) { |
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.
Only prompts the user flow if !refreshToken or refreshToken fails
Codecov Report
@@ Coverage Diff @@
## main #3749 +/- ##
==========================================
- Coverage 64.10% 64.09% -0.02%
==========================================
Files 987 987
Lines 29668 29669 +1
Branches 7099 7095 -4
==========================================
- Hits 19019 19016 -3
- Misses 10485 10489 +4
Partials 164 164
... and 1 file with indirect coverage changes 📣 We’re building smart automated test selection to slash your CI/CD build times. Learn more |
2bb0941
to
bce2414
Compare
* Add missing "$" in template * Use validateToken to ensure refresh token is exchanged
maybe can just go ahead with merge, and test on main...I think it should be good to go |
Follow up to the oauth PR
Also does a couple refactors
a) disables the need to have any config slot for "hasRefreshToken". it is just there or not in the responses, and eagerly attempted to use
b) misc immutable js syntax sugar
c) adds more console.error logs where before they were silent, which may make the log noisier but may improve debugging