Skip to content

Commit 71654b3

Browse files
docs: passwordPrompt
1 parent 7926c5d commit 71654b3

File tree

1 file changed

+16
-0
lines changed

1 file changed

+16
-0
lines changed

FirebaseSwiftUI/README.md

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1423,6 +1423,22 @@ Navigator for managing navigation routes in default views.
14231423

14241424
---
14251425

1426+
```swift
1427+
public var passwordPrompt: PasswordPromptCoordinator
1428+
```
1429+
A coordinator that manages password prompt dialogs during reauthentication flows for the email provider.
1430+
1431+
Users can provide a custom `PasswordPromptCoordinator` instance when initializing `EmailProviderSwift` to customize password prompting behavior:
1432+
1433+
```swift
1434+
let customPrompt = PasswordPromptCoordinator()
1435+
authService.withEmailSignIn(EmailProviderSwift(passwordPrompt: customPrompt))
1436+
```
1437+
1438+
**Default Behavior:** If no custom coordinator is provided, a default `PasswordPromptCoordinator()` instance is created automatically. The default coordinator displays a modal sheet that prompts the user to enter their password when reauthentication is required for sensitive operations (e.g., updating email, deleting account).
1439+
1440+
---
1441+
14261442
```swift
14271443
public var authView: AuthView?
14281444
```

0 commit comments

Comments
 (0)