Type Aliases

The following type aliases are available globally.

  • TokenDelegateListener Asynchronous

    A listener the SDK invokes to obtain a fresh OAuthToken for 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 a TokenRequestReason. 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 with invalidAccessToken.

    Declaration

    Swift

    public typealias TokenDelegateListener = @Sendable (TokenRequestReason) async throws -> OAuthToken