auth-vir - v3.1.0
    Preparing search index...

    Type Alias UserIdResult<UserId>

    type UserIdResult<UserId extends string | number> = {
        cookieName: string;
        csrfToken: string;
        jwtExpiration: FullDate<UtcTimezone>;
        jwtIssuedAt: FullDate<UtcTimezone>;
        sessionStartedAt: JwtUserData["sessionStartedAt"];
        userId: UserId;
    }

    Type Parameters

    • UserId extends string | number
    Index

    Properties

    cookieName: string
    csrfToken: string

    The CSRF token embedded in the JWT.

    jwtExpiration: FullDate<UtcTimezone>
    jwtIssuedAt: FullDate<UtcTimezone>

    When the JWT was issued (iat claim).

    sessionStartedAt: JwtUserData["sessionStartedAt"]

    Unix timestamp (in milliseconds) when the session was originally started. Used to enforce max session duration.

    userId: UserId