Lucia

Session

Represents a session.

Definition

interface Session extends SessionAttributes {
	id: string;
	expiresAt: Date;
	fresh: boolean;
	userId: string;
}

Properties

  • id
  • expiresAt
  • fresh: true if session was newly created or its expiration was extended
  • userId