Skip to content

Commit 45d5a3c

Browse files
committed
fix: phone auth uses navigator
1 parent 0fb6e66 commit 45d5a3c

2 files changed

Lines changed: 3 additions & 3 deletions

File tree

FirebaseSwiftUI/FirebasePhoneAuthSwiftUI/Sources/Views/PhoneAuthButtonView.swift

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -34,9 +34,7 @@ extension PhoneAuthButtonView: View {
3434
style: .phone,
3535
accessibilityId: "sign-in-with-phone-button"
3636
) {
37-
Task {
38-
try? await authService.signIn(phoneProvider)
39-
}
37+
authService.navigator.push(.enterPhoneNumber)
4038
}
4139
}
4240
}

firebase-debug.log

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -39,3 +39,5 @@ Issues? Report them at https://github.com/firebase/firebase-tools/issues and att
3939
[info] i To verify the phone number +2348145495544, use the code 309002. {"metadata":{"emulator":{"name":"auth"},"message":"To verify the phone number +2348145495544, use the code 309002."}}
4040
[info] i To verify the phone number +2348145495544, use the code 227291. {"metadata":{"emulator":{"name":"auth"},"message":"To verify the phone number +2348145495544, use the code 227291."}}
4141
[info] i To verify the phone number +2348145495544, use the code 419134. {"metadata":{"emulator":{"name":"auth"},"message":"To verify the phone number +2348145495544, use the code 419134."}}
42+
[warn] ⚠ Received a signed JWT. Auth Emulator does not validate JWTs and IS NOT SECURE {"metadata":{"emulator":{"name":"auth"},"message":"Received a signed JWT. Auth Emulator does not validate JWTs and IS NOT SECURE"}}
43+
[warn] ⚠ Received a signed JWT. Auth Emulator does not validate JWTs and IS NOT SECURE {"metadata":{"emulator":{"name":"auth"},"message":"Received a signed JWT. Auth Emulator does not validate JWTs and IS NOT SECURE"}}

0 commit comments

Comments
 (0)