function readStoredSession
readStoredSession(): Session | null

Returns the stored session, or null. A session that is unreadable, expired or from before roles existed is removed from storage.

Return Type

Session | null

Usage

import { readStoredSession } from "src/utils/auth/storage.ts";