naystack - v1.5.10
    Preparing search index...

    Interface Context

    Request context passed to GraphQL resolvers. Built automatically from the request's Authorization header or refresh cookie by the built-in getContext.

    interface Context {
        isRefreshID?: boolean;
        userId: number | null;
    }
    Index

    Properties

    Properties

    isRefreshID?: boolean

    true if the user was identified via the refresh cookie (not an access token). When isRefreshID is true, mutations are blocked by default (only queries are allowed via refresh cookie).

    userId: number | null

    Authenticated user id, or null if the request is unauthenticated.