Skip to content

Commit eec3d28

Browse files
committed
Ensure AuthenticationServices methods are called from main thread
1 parent 5b1edcb commit eec3d28

1 file changed

Lines changed: 1 addition & 0 deletions

File tree

Sources/Twift+Authentication.swift

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -166,6 +166,7 @@ extension Twift.Authentication {
166166
/// - scope: The user access scopes for your authentication. For automatic token refreshing, ensure that `offlineAccess` is included in the scope.
167167
/// - presentationContextProvider: Optional presentation context provider. When not provided, this function will handle the presentation context itself.
168168
/// - Returns: The authenticated user access tokens.
169+
@MainActor
169170
public func authenticateUser(clientId: String,
170171
redirectUri: URL,
171172
scope: Set<OAuth2Scope>,

0 commit comments

Comments
 (0)