Skip to content
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(gotrue): signing in with pkce flow fires two signedIn auth event #734

Merged
merged 1 commit into from
Nov 27, 2023

Conversation

dshukertjr
Copy link
Member

What kind of change does this PR introduce?

Currently when a user signs in with the pkce flow, two signedIn events are fired. This PR makes it one.

Comment on lines -644 to -648
if (storeSession == true) {
_saveSession(session);
notifyAllSubscribers(AuthChangeEvent.signedIn);
}

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The same set of code can be found in the exchangeCodeForSession() function here, so this codeblock is unnecessary.

@dshukertjr dshukertjr merged commit 6dee166 into next Nov 27, 2023
8 checks passed
@dshukertjr dshukertjr deleted the fix/auth-pkceFlow branch November 27, 2023 03:14
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants