Skip to content
This repository was archived by the owner on Feb 5, 2025. It is now read-only.

Commit 82f590d

Browse files
committed
Adding flag for unified auth flow.
1 parent 15aa18a commit 82f590d

File tree

1 file changed

+7
-1
lines changed

1 file changed

+7
-1
lines changed

WordPressAuthenticator/Authenticator/WordPressAuthenticatorConfiguration.swift

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -61,6 +61,10 @@ public struct WordPressAuthenticatorConfiguration {
6161
///
6262
let enableSignInWithApple: Bool
6363

64+
/// Flag indicating if the unified login/signup flow should be displayed.
65+
///
66+
let enableUnifiedAuth: Bool
67+
6468
/// Designated Initializer
6569
///
6670
public init (wpcomClientId: String,
@@ -75,7 +79,8 @@ public struct WordPressAuthenticatorConfiguration {
7579
userAgent: String,
7680
showLoginOptions: Bool = false,
7781
showLoginOptionsFromSiteAddress: Bool = false,
78-
enableSignInWithApple: Bool = false) {
82+
enableSignInWithApple: Bool = false,
83+
enableUnifiedAuth: Bool = false) {
7984

8085
self.wpcomClientId = wpcomClientId
8186
self.wpcomSecret = wpcomSecret
@@ -90,5 +95,6 @@ public struct WordPressAuthenticatorConfiguration {
9095
self.showLoginOptions = showLoginOptions
9196
self.showLoginOptionsFromSiteAddress = showLoginOptionsFromSiteAddress
9297
self.enableSignInWithApple = enableSignInWithApple
98+
self.enableUnifiedAuth = enableUnifiedAuth
9399
}
94100
}

0 commit comments

Comments
 (0)