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
/// - scope: The user access scopes for your authentication. For automatic token refreshing, ensure that `offlineAccess` is included in the scope.
145
145
/// - presentationContextProvider: Optional presentation context provider. When not provided, this function will handle the presentation context itself.
146
146
/// - Returns: A tuple containing the authenticated user access tokens or any encoutered error.
147
+
@_disfavoredOverload
148
+
@available(*, deprecated, message:"Use throwing 'authenticateUser' function instead")
/// Authenticates the user using Twitter's OAuth 2.0 PKCE flow.
163
+
/// - Parameters:
164
+
/// - clientId: The client ID for your Twitter API app
165
+
/// - redirectUri: The URI to redirect users to after completing authentication.
166
+
/// - scope: The user access scopes for your authentication. For automatic token refreshing, ensure that `offlineAccess` is included in the scope.
167
+
/// - presentationContextProvider: Optional presentation context provider. When not provided, this function will handle the presentation context itself.
168
+
/// - Returns: The authenticated user access tokens.
return continuation.resume(throwing:TwiftError.UnknownError("There was a problem authenticating the user: no URL was returned from the first authentication step."))
0 commit comments