Skip to content

Commit 6a43b96

Browse files
chore: needed custom params for microsoft and yahoo
1 parent 9493572 commit 6a43b96

File tree

1 file changed

+4
-2
lines changed

1 file changed

+4
-2
lines changed

FirebaseSwiftUI/FirebaseOAuthSwiftUI/Sources/Services/OAuthProviderSwift+Presets.swift

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -40,6 +40,7 @@ public extension OAuthProviderSwift {
4040
return OAuthProviderSwift(
4141
providerId: "microsoft.com",
4242
scopes: scopes,
43+
customParameters: ["prompt" : "consent"],
4344
displayName: "Sign in with Microsoft",
4445
iconSystemName: "building.2",
4546
buttonBackgroundColor: Color(red: 0/255, green: 120/255, blue: 212/255),
@@ -49,12 +50,13 @@ public extension OAuthProviderSwift {
4950

5051
/// Yahoo OAuth provider
5152
/// - Parameters:
52-
/// - scopes: Yahoo scopes (default: [])
53+
/// - scopes: Yahoo scopes (default: ["user.readwrite"])
5354
/// - Returns: Configured Yahoo provider
54-
static func yahoo(scopes: [String] = []) -> OAuthProviderSwift {
55+
static func yahoo(scopes: [String] = ["user.readwrite"]) -> OAuthProviderSwift {
5556
return OAuthProviderSwift(
5657
providerId: "yahoo.com",
5758
scopes: scopes,
59+
customParameters: ["prompt" : "consent"],
5860
displayName: "Sign in with Yahoo",
5961
iconSystemName: "y.circle.fill",
6062
buttonBackgroundColor: Color(red: 80/255, green: 0/255, blue: 155/255),

0 commit comments

Comments
 (0)