Type Aliases
The following type aliases are available globally.
-
TokenDelegateListenerAsynchronousA listener the SDK invokes to obtain a fresh
OAuthTokenfor the implicit OAuth flow.Register it via
setTokenDelegateListener(_:). The SDK calls the listener shortly before the current connection token expires (or after the backend rejects it), passing aTokenRequestReason. The listener obtains a fresh token from the OAuth provider and returns it; the SDK applies the token and resumes the operation that needed it. If the listener throws, the operation fails withinvalidAccessToken.Declaration
Swift
public typealias TokenDelegateListener = @Sendable (TokenRequestReason) async throws -> OAuthToken
View on GitHub
Type Aliases Reference