You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: Sources/StytchCore/StytchClient/OAuth/OAuth+Apple.swift
+6Lines changed: 6 additions & 0 deletions
Original file line number
Diff line number
Diff line change
@@ -18,6 +18,7 @@ public extension StytchClient.OAuth {
18
18
/// Initiates the OAuth flow by using the included parameters to start a Sign In With Apple request. If the authentication is successful this method will return a new session object.
@@ -50,16 +51,19 @@ public extension StytchClient.OAuth.ThirdParty {
50
51
/// - Parameters:
51
52
/// - loginRedirectUrl: The url an existing user is redirected to after authenticating with the identity provider. This url **must** use a custom scheme and be added to your Stytch Dashboard.
52
53
/// - signupRedirectUrl: The url a new user is redirected to after authenticating with the identity provider. This url **must** use a custom scheme and be added to your Stytch Dashboard.
54
+
/// - oauthAttachToken: A single-use token for connecting the Stytch User selection from an OAuth Attach request to the corresponding OAuth Start request.
53
55
/// - customScopes: Any additional scopes to be requested from the identity provider.
54
56
/// - providerParams: An optional mapping of provider specific values to pass through to the OAuth provider
55
57
publicinit(
56
58
loginRedirectUrl:URL?=nil,
57
59
signupRedirectUrl:URL?=nil,
60
+
oauthAttachToken:String?=nil,
58
61
customScopes:[String]?=nil,
59
62
providerParams:[String:String]?=nil
60
63
){
61
64
self.loginRedirectUrl = loginRedirectUrl
62
65
self.signupRedirectUrl = signupRedirectUrl
66
+
self.oauthAttachToken = oauthAttachToken
63
67
self.customScopes = customScopes
64
68
self.providerParams = providerParams
65
69
}
@@ -91,6 +95,10 @@ public extension StytchClient.OAuth.ThirdParty {
0 commit comments