Interface SessionStorePayload<Data>

Type Parameters

Hierarchy

  • SessionStorePayload

Properties

Properties

cookie: {
    expires: number;
    maxAge: number;
}

This makes it compatible with some express-session stores that use this to set their ttl.

Type declaration

  • expires: number
  • maxAge: number
data: Data

The session data.

header: {
    exp: number;
    iat: number;
    uat: number;
}

Type declaration

  • exp: number

    timestamp (in secs) when the session expires.

  • iat: number

    timestamp (in secs) when the session was created.

  • uat: number

    timestamp (in secs) when the session was last touched.