Lucia

Lucia.validateSession()

Method of Lucia. Validates a session with the session ID. Extends the session expiration if in idle state.

Definition

function validateSession(
	sessionId: string
): Promise<{ user: User; session: Session } | { user: null; session: null }>;

Parameters

  • sessionId