Skip to content

Commit

Permalink
fix: fixed android compile issue
Browse files Browse the repository at this point in the history
  • Loading branch information
YermekG committed Jan 23, 2024
1 parent 31baaf2 commit dcaf56c
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions Source/Immutable/Private/Immutable/ImmutablePassport.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -989,9 +989,7 @@ void UImmutablePassport::CompleteLoginPKCEFlow(FString Url)
IMTBL_ERR("%s", *ErrorMsg);
PKCEResponseDelegate.ExecuteIfBound(FImmutablePassportResult{false, ErrorMsg});
PKCEResponseDelegate = nullptr;
#if PLATFORM_ANDROID
completingPKCE = false;
#endif
ResetStateFlags(IPS_PKCE|IPS_CONNECTING);
}
else
{
Expand Down Expand Up @@ -1030,7 +1028,7 @@ void UImmutablePassport::HandleOnLoginPKCEDismissed()
IMTBL_LOG("Handle On Login PKCE Dismissed");
OnPKCEDismissed = nullptr;

if (!completingPKCE)
if (IsStateFlagSet(IPS_CONNECTING))
{
// User hasn't entered all required details (e.g. email address) into
// Passport yet
Expand Down

0 comments on commit dcaf56c

Please sign in to comment.