ObjectStackObjectStack

Auth Endpoints

Auth Endpoints protocol schemas

Authentication Endpoint Specification

Defines the canonical HTTP endpoints for the authentication service.

Based on better-auth v1.4.18 endpoint conventions.

NOTE: ObjectStack's auth implementation uses better-auth library which has

established endpoint conventions. This spec documents those conventions as

the canonical API contract.

Source: packages/spec/src/api/auth-endpoints.zod.ts

TypeScript Usage

import { AuthEndpoint } from '@objectstack/spec/api';
import type { AuthEndpoint } from '@objectstack/spec/api';

// Validate data
const result = AuthEndpoint.parse(data);

AuthEndpoint

Properties

PropertyTypeRequiredDescription
signInEmailObject
signUpEmailObject
signOutObject
getSessionObject
forgetPasswordObject
resetPasswordObject
sendVerificationEmailObject
verifyEmailObject

On this page