Skip to content

Commit bd65261

Browse files
docs: update provider API reference
1 parent 9da1d5d commit bd65261

File tree

1 file changed

+12
-3
lines changed

1 file changed

+12
-3
lines changed

FirebaseSwiftUI/README.md

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -833,11 +833,14 @@ authService
833833

834834
```swift
835835
// Available when importing FirebaseAppleSwiftUI
836-
public func withAppleSignIn() -> AuthService
836+
public func withAppleSignIn(_ provider: AppleProviderSwift? = nil) -> AuthService
837837
```
838838

839839
Enables Sign in with Apple authentication and will register an apple button that is rendered in `AuthPickerView` (default Views) or can be rendered in custom Views by calling `AuthService.renderButtons()`.
840840

841+
**Parameters:**
842+
- `provider`: An optional instance of `AppleProviderSwift`. If not provided, a default instance will be created.
843+
841844
**Example:**
842845

843846
```swift
@@ -851,11 +854,14 @@ authService
851854

852855
```swift
853856
// Available when importing FirebaseGoogleSwiftUI
854-
public func withGoogleSignIn() -> AuthService
857+
public func withGoogleSignIn(_ provider: GoogleProviderSwift? = nil) -> AuthService
855858
```
856859

857860
Enables Sign in with Google authentication and will register a Google button that is rendered in AuthPickerView (default Views) or can be rendered in custom Views by calling `AuthService.renderButtons()`.
858861

862+
**Parameters:**
863+
- `provider`: An optional instance of `GoogleProviderSwift`. If not provided, a default instance will be created using the client ID from Firebase configuration.
864+
859865
**Example:**
860866

861867
```swift
@@ -890,11 +896,14 @@ authService
890896

891897
```swift
892898
// Available when importing FirebaseTwitterSwiftUI
893-
public func withTwitterSignIn() -> AuthService
899+
public func withTwitterSignIn(_ provider: TwitterProviderSwift? = nil) -> AuthService
894900
```
895901

896902
Enables Sign in with Twitter authentication and will register a Twitter button that is rendered in AuthPickerView (default Views) or can be rendered in custom Views by calling `AuthService.renderButtons()`.
897903

904+
**Parameters:**
905+
- `provider`: An optional instance of `TwitterProviderSwift`. If not provided, a default instance will be created.
906+
898907
**Example:**
899908

900909
```swift

0 commit comments

Comments
 (0)