You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the content issue: Amplify.Auth.signInWithWebUI(presentationAnchor: self.view.window!) without try await before it does not work.
Current
func signInWithWebUI()async{do{letsignInResult=Amplify.Auth.signInWithWebUI(presentationAnchor:self.view.window!)if signInResult.isSignedIn {print("Sign in succeeded")}}catchlet error as AuthError{print("Sign in failed \(error)")}catch{print("Unexpected error: \(error)")}}
Contents to be modified
func signInWithWebUI()async{do{letsignInResult=tryawaitAmplify.Auth.signInWithWebUI(presentationAnchor:self.view.window!)if signInResult.isSignedIn {print("Sign in succeeded")}}catchlet error as AuthError{print("Sign in failed \(error)")}catch{print("Unexpected error: \(error)")}}