Trails Packages
    Preparing search index...

    Information about the authenticated user's session.

    interface SessionInfo {
        attributes?: Record<string, unknown>;
        expiresAt?: Date;
        userId: string;
        userName?: string;
    }
    Index

    Properties

    attributes?: Record<string, unknown>

    Arbitrary attributes from the authentication plugin.

    expiresAt?: Date

    Set to a date if the session expires at some point. Optional.

    userId: string

    Technical user id of the authenticated user, for example an email address.

    userName?: string

    Display name of the authenticated user. Use the userId as a default value if this value is not available.