Skip to content

Commit

Permalink
Update reauthenticate and promoteAnonymousUser for state parameter do…
Browse files Browse the repository at this point in the history
…cumentation
  • Loading branch information
mickmak-busicat committed Sep 5, 2024
1 parent 9d76cfc commit 357c0f5
Showing 1 changed file with 6 additions and 4 deletions.
10 changes: 6 additions & 4 deletions Sources/Authgear.swift
Original file line number Diff line number Diff line change
Expand Up @@ -853,9 +853,10 @@ public class Authgear {
}
}

/// - Parameters:
/// - xState: Use this parameter to provide parameters from the client application to Custom UI. The string in xState can be accessed by the Custom UI. Ignore this parameter if default AuthUI is used
public func reauthenticate(
redirectURI: String,
state: String? = nil,
xState: String? = nil,
uiLocales: [String]? = nil,
colorScheme: ColorScheme? = nil,
Expand Down Expand Up @@ -899,7 +900,7 @@ public class Authgear {
let options = ReauthenticateOptions(
redirectURI: redirectURI,
isSSOEnabled: self.isSSOEnabled,
state: state,
state: nil,
xState: xState,
uiLocales: uiLocales,
colorScheme: colorScheme,
Expand Down Expand Up @@ -981,9 +982,10 @@ public class Authgear {
}
}

/// - Parameters:
/// - xState: Use this parameter to provide parameters from the client application to Custom UI. The string in xState can be accessed by the Custom UI. Ignore this parameter if default AuthUI is used
public func promoteAnonymousUser(
redirectURI: String,
state: String? = nil,
xState: String? = nil,
uiLocales: [String]? = nil,
colorScheme: ColorScheme? = nil,
Expand Down Expand Up @@ -1023,7 +1025,7 @@ public class Authgear {
redirectURI: redirectURI,
isSSOEnabled: self.isSSOEnabled,
preAuthenticatedURLEnabled: self.preAuthenticatedURLEnabled,
state: state,
state: nil,
xState: xState,
prompt: [.login],
loginHint: loginHint,
Expand Down

0 comments on commit 357c0f5

Please sign in to comment.