Skip to content

[DX-2624] feat: set pkce result if user is in the correct state #161

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

Merged
merged 1 commit into from
Feb 1, 2024

Conversation

nattb8
Copy link
Collaborator

@nattb8 nattb8 commented Feb 1, 2024

Summary

Sometimes, the LoginPKCE/ConnectImxPKCE function might get triggered twice in the integrating game. As a result, the second call can result in an error due to the absence of pkceCompletionSource to return a result, as the first call has already nullified it.

Added a flag to check if the user is currently logged in and only call TrySetPKCEResult if the user is in the correct state:

  • Call TrySetPKCEResult for login if the user is not currently logged in
  • Call TrySetPKCEResult for logout if the user is currently

Customer Impact

N/A

@nattb8 nattb8 requested a review from a team February 1, 2024 04:38
@nattb8 nattb8 merged commit cd2263f into main Feb 1, 2024
@nattb8 nattb8 deleted the feat/pkce-result branch February 1, 2024 21:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

Successfully merging this pull request may close these issues.

2 participants