Creating Plot Twists
    Preparing search index...

    Type Alias AuthToken

    Represents a stored OAuth authentication token.

    Contains the actual access token and the scopes it was granted, which may be a subset of the originally requested scopes.

    type AuthToken = {
        token: string;
        scopes: string[];
        provider?: Record<string, string>;
    }
    Index

    Properties

    token: string

    The OAuth access token

    scopes: string[]

    Array of granted OAuth scopes

    provider?: Record<string, string>

    Provider-specific metadata as key-value pairs.

    For Slack (AuthProvider.Slack):

    • authed_user_id: The authenticated user's Slack ID
    • bot_user_id: The bot user's Slack ID
    • team_name: The Slack workspace/team name