Skip to content

Commit c6ef8ac

Browse files
NakaokaReiRachel Lee Nabors
authored andcommitted
fix: add try await (#5250)
1 parent a5f9258 commit c6ef8ac

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

src/fragments/lib/auth/ios/signin_web_ui/30_signin.mdx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ Sweet! You're now ready to launch sign in with web UI. The `signInWithWebUI` api
77
```swift
88
func signInWithWebUI() async {
99
do {
10-
let signInResult = Amplify.Auth.signInWithWebUI(presentationAnchor: self.view.window!)
10+
let signInResult = try await Amplify.Auth.signInWithWebUI(presentationAnchor: self.view.window!)
1111
if signInResult.isSignedIn {
1212
print("Sign in succeeded")
1313
}

0 commit comments

Comments
 (0)