Authentication actions

Named auth server actions in packages/core (sign-in, session, password flows, operator impersonation).

Written By Zoro

Last updated 3 days ago

These are Next.js Server Actions used by the dashboard and related flows.

Names match actionName metadata in code. Source of truth: packages/core/src/actions/auth/index.ts, plus fetchAuthConfigAction in packages/core/src/actions/pages/auth/index.ts.

Not every auth action is listed in getActionAccess (RBAC map). Some paths are public or use separate guards. Use this page as a navigational index into the codebase.

Session and identity

actionNameTypical purpose
signInActionEmail or credential sign-in.
signUpActionRegistration.
logoutActionEnd session.
getUserActionLoad current user for the client.
getTenantActionResolve tenant context for the workspace.
autoLoginActionAutomated login continuation flows where used.
requestMagicLinkActionSend or validate magic-link style auth where enabled.

Password and verification

actionNameTypical purpose
forgotPasswordActionStart password reset.
resetPasswordActionComplete password reset with token.
verifyEmailActionEmail verification handling.

Configuration

actionNameTypical purpose
fetchAuthConfigActionLoad auth-related configuration for the client (from pages/auth).

Operator-only (dangerous)

actionNameTypical purpose
impersonateUserActionSupport or admin impersonation; must remain tightly controlled.

For team invites and workspace roles, see server actions under packages/core/src/actions/team/ and Roles and permissions under Security and Team Management in the sidebar.

Learn more