-
Notifications
You must be signed in to change notification settings - Fork 68
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
fix: Remove getUser
in callback handler
#461
Conversation
…o that state is accessible in onSignIn callback
Thanks for opening this pull request! The maintainers of this repository would appreciate it if you would update some of our documentation based on your changes. You can run |
Codecov Report
@@ Coverage Diff @@
## master #461 +/- ##
==========================================
- Coverage 96.22% 96.15% -0.08%
==========================================
Files 1 1
Lines 53 52 -1
Branches 11 11
==========================================
- Hits 51 50 -1
Misses 2 2
Continue to review full report at Codecov.
|
not sure what to do about the semantic pull request i renamed the PR to be prefix with fix: but not sure how to "Squash and Merge" |
@@ -85,8 +85,7 @@ export const AuthProvider: FC<AuthProviderProps> = ({ | |||
* Check if the user is returning back from OIDC. | |||
*/ | |||
if (hasCodeInUrl(location)) { | |||
await userManager.signinCallback(); | |||
const user = await userManager.getUser(); | |||
const user = await userManager.signinCallback(); |
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.
Okey, so signinCallback
returns the same as getUser
?
Don't worry about that, I can fix that :) |
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.
Thank you so much for contributing to this project!
getUser
in callback handler
sweet, its merged :) how does this get upversioned and released to npm ? |
🎉 This PR is included in version 1.1.6 🎉 The release is available on: Your semantic-release bot 📦🚀 |
Already done 👇
|
Update to the signincallback flow to make state returned from oidc-client available to the onSignIn event
fixes #447