LogoRobo.js
Packages@robojs/auth

DIRECTORY

API reference for @robojs/auth

@robojs/auth

API reference documentation for @robojs/auth.

Classes

Interfaces

Type Aliases

Functions

  • AssertPasswordAdapter - Validates that a supplied Auth.js adapter implements password helper methods.
  • ClearSessions - Removes all sessions from the device and signs out completely.
  • ConfigureAuthProxyRuntime - Configures upstream proxy mode where Robo forwards auth routes to another.
  • ConfigureAuthRuntime - Initializes Auth.js in local mode by creating a reusable handler that Robo's.
  • CreateAuthRequestHandler - Bridges Robo.js requests to Auth.js so plugin routes can reuse the official handler.
  • CreateFlashcoreAdapter - Creates a password-capable Auth.js adapter that stores users, accounts,.
  • CreatePrismaAdapter - Creates a password-capable Auth.js adapter backed by Prisma.
  • CreateResendMailer - Builds an AuthMailer implementation backed by the Resend email API.
  • GetCsrfToken - Fetches the CSRF token used by Auth.js form submissions.
  • GetProviders - Lists OAuth, Email, and custom providers configured in Auth.js at runtime.
  • GetRequestPayload - Parses the Robo request body once and exposes a reusable payload helper.
  • GetServerSession - Retrieves the active Auth.js Session using the configured runtime.
  • GetSession - Retrieves the current Auth.js session object, if one exists.
  • GetSessions - Lists all sessions stored on this device, including expired ones.
  • GetToken - Extracts (and optionally decodes) the Auth.js session token.
  • HashPassword - Generates a PHC-formatted Argon2id hash string for a plaintext password.
  • ListPrismaUserIds - Retrieves a paginated list of Auth.js user IDs using Prisma.
  • ListPrismaUsers - Retrieves paginated AdapterUser records via Prisma.
  • ListUserIds - Retrieves a paginated list of user IDs from the Flashcore user index.
  • ListUsers - Retrieves paginated AdapterUser records by loading IDs from.
  • NeedsRehash - Determines whether a stored Argon2id hash needs to be regenerated.
  • NormalizeAuthOptions - Parses plugin configuration, applies defaults, and returns an Auth.js-ready option set.
  • RemoveSession - Removes a session from the device stack and deletes the server-side session.
  • SignIn
  • SignOut
  • SignUp - Initiates the sign-up flow for the Email/Password provider.
  • SwitchSession - Switches the active session to the given user.
  • VerifyPasswordHash - Validates a password against a stored Argon2id hash.

Variables

  • AuthLogger - Namespaced logger for all @robojs/auth runtime output.
  • AuthPluginOptionsSchema - Zod schema enforcing the structure of @robojs/auth plugin configuration.
  • Auth_routes - Robo-authenticated routes mounted under the configured basePath.
  • Default_base_path - Default route prefix used by the Auth plugin REST handlers.

On this page