UNPKG

@auth/core

Version:

Authentication for the Web.

18 lines (15 loc) 334 B
import type { AuthAction } from "../../types.js" const actions: AuthAction[] = [ "providers", "session", "csrf", "signin", "signout", "callback", "verify-request", "error", "webauthn-options", ] export function isAuthAction(action: string): action is AuthAction { return actions.includes(action as AuthAction) }