Lucia v3

Session

Represents a session.

Definition

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

Properties

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