Creating Plot Twists
    Preparing search index...

    Type Alias Authorization

    Represents a completed authorization from an OAuth flow.

    Contains the provider, granted scopes, and the actor (contact) that was authorized. Tokens are looked up by (provider, actorId) rather than a random ID.

    type Authorization = {
        provider: AuthProvider;
        scopes: string[];
        actor: Actor;
    }
    Index

    Properties

    Properties

    provider: AuthProvider

    The OAuth provider this authorization is for

    scopes: string[]

    Array of OAuth scopes this authorization covers

    actor: Actor

    The external account that was authorized (e.g., the Google account)