function useRequiredAuth
useRequiredAuth(): UseRequiredAuthResult

Returns the session, for a page that RestrictedLoggedIn guards, such as DumpEdit, so it needn't check for a user.

Return Type

Throws

Error

When no one is signed in, which means the route has no guard.

Usage

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