noAuth
function noAuth(): AuthProvider;Defined in: src/auth/none.ts:39
Create an AuthProvider that performs no authentication and resolves every request to the shared ANONYMOUS_PRINCIPAL.
Because it never returns null, the request is always “authenticated” — use
an AuthorizationProvider to control what the anonymous principal may
actually do.
Returns
Section titled “Returns”Example
Section titled “Example”import { noAuth } from "@xtandard/kit/auth/none";
const auth = noAuth();await auth.authenticate(request); // → { id: "anonymous" }