firebase-video-samples
firebase-video-samples copied to clipboard
Sign In With Apple sheet is not dismissed on login with anonymous auth
Applies to the auth-account-linking/final project.
Expected Behavior
When signing in with Apple, the sheet is not dismissed.
Actual Behavior
Sheet stays open.
Steps to Reproduce the Problem
- Sign In With Apple
Specifications
iOS 17.2.1 / iPhone 14
@peterfriese Would love to hear your input on this 🙏
@Wallman Add this to your SingInWithAppleButton's onCompletion handler
if case .success(_) = result { dismiss() }
So that it looks something like this: (assuming you are using the auth-account-linking/final project without modification)
SignInWithAppleButton(.signIn) { request in
viewModel.handleSignInWithAppleRequest(request)
} onCompletion: { result in
viewModel.handleSignInWithAppleCompletion(result)
if case .success(_) = result { dismiss() }
}
I'm making a PR to fix this issue :)