Skip to content

Commit 82c496e

Browse files
docs: ATT note and update withEmailSignIn() reference
1 parent 242c15b commit 82c496e

File tree

1 file changed

+13
-4
lines changed

1 file changed

+13
-4
lines changed

FirebaseSwiftUI/README.md

Lines changed: 13 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -262,7 +262,7 @@ The default views support:
262262
- **Phone Authentication** (SMS verification)
263263
- **Sign in with Apple**
264264
- **Sign in with Google**
265-
- **Sign in with Facebook** (Classic and Limited Login)
265+
- **Sign in with Facebook** (Classic and Limited Login depending on whether App Tracking Transparency is authorized)
266266
- **Sign in with Twitter**
267267
- **Generic OAuth Providers** (GitHub, Microsoft, Yahoo, or custom OIDC)
268268

@@ -772,17 +772,26 @@ public func withEmailSignIn() -> AuthService
772772

773773
Enables email/password and email link authentication. Uses default behavior (navigates to email link view when tapped).
774774

775+
**Example:**
776+
775777
```swift
776-
public func withEmailSignIn(onTap: @escaping @MainActor () -> Void) -> AuthService
778+
authService
779+
.withEmailSignIn()
777780
```
778781

779-
Enables email authentication with a custom callback when the email button is tapped.
782+
```swift
783+
public func withEmailSignIn(onTap: @escaping () -> Void) -> AuthService
784+
```
785+
786+
Enables email authentication with a custom callback (i.e where to navigate when tapped) when the email button is tapped.
780787

781788
**Example:**
782789

783790
```swift
784791
authService
785-
.withEmailSignIn()
792+
.withEmailSignIn(){
793+
// navigate to email sign-in screen logic
794+
}
786795
```
787796

788797
---

0 commit comments

Comments
 (0)