Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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
Add ability to refresh the user identity in
useGetIdentity
#8372Add ability to refresh the user identity in
useGetIdentity
#8372Changes from all commits
e6a43f3
e7d18a8
82534c2
5d4b397
e173711
6e16fe1
29812ca
f6c6561
File filter
Filter by extension
Conversations
Jump to
There are no files selected for viewing
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.
Removing typeof authProvider.getIdentity === 'function' check causes a tiny BC break.
We found there are console errors after upgrading pass 4.6 because we have never implemented the getIdentity method since it was introduced in #5180
In the previous pull request it says
In v4 upgrade guide it did not mention this method is now required to be implemented. I believe we should now add a note about that breaking change.
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.
It will be very easy for us to catch the issue and implement the method.
Just for other users they should be aware when they upgrade.
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.
Thanks for pointing that out!
The
getIdentity
function should remain optional, even in v4, so I believe we should reintroduce this check to avoid errors. I'll open a new PR.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.
Here it is: #8509