Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Update SDK reference for authenticate param #177

Merged
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 2 additions & 4 deletions Sources/Authgear.swift
Original file line number Diff line number Diff line change
Expand Up @@ -818,10 +818,8 @@ public class Authgear {
/// - 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 authenticate(
redirectURI: String,
state: String? = nil,
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Apply the same change to reauthenticate() promoteAnonymousUser()

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

removed state from reauthenticate() promoteAnonymousUser() and added xState description to them as well

xState: String? = nil,
prompt: [PromptOption]? = nil,
loginHint: String? = nil,
uiLocales: [String]? = nil,
colorScheme: ColorScheme? = nil,
wechatRedirectURI: String? = nil,
Expand All @@ -833,10 +831,10 @@ public class Authgear {
redirectURI: redirectURI,
isSSOEnabled: self.isSSOEnabled,
preAuthenticatedURLEnabled: self.preAuthenticatedURLEnabled,
state: state,
state: nil,
xState: xState,
prompt: prompt,
loginHint: loginHint,
loginHint: nil,
uiLocales: uiLocales,
colorScheme: colorScheme,
wechatRedirectURI: wechatRedirectURI,
Expand Down