Cotal TypeScript packages
    Preparing search index...

    Interface IdpSession

    A cached IdP login. token is the IdP session bearer (Better Auth: session.token) — an opaque revocable handle, never a JWT. expiresAt (unix seconds) is advisory for messages; the server is the authority (a revoked session dies earlier).

    interface IdpSession {
        expiresAt: number;
        label?: string;
        name?: string;
        sub?: string;
        token: string;
    }
    Index
    expiresAt: number
    label?: string

    Account display label returned by the provider, never an authorization identity.

    name?: string

    The handle a chat session appears as by default: the IdP's preferred_username, else its email's local part, else its name, the first that is a chat name. Display only. Absent when none is, and in caches written by older builds.

    sub?: string

    The IdP subject this session proved at login (display + local owner derivation). Absent only in caches written by older builds — consumers that need it fail loud naming cotal login.

    token: string