property UseAuthResult.updateSession

Merges patch into the session, in memory and in storage. The profile page uses it for a new avatar or email, the password dialog for fresh tokens.

Type

(patch: Partial<Session>) => void

Usage

import { type UseAuthResult } from "src/hooks/auth/useAuth.ts";