Auth API
Better Auth Service
Running
NexToCloud Platform

Authentication Service

Dedicated auth service powering session management, JWT issuance, and organization multi-tenancy for the NexToCloud platform.

🔑Authentication

POST/api/auth/sign-in/emailAuthenticate with email and password
POST/api/auth/sign-up/emailRegister a new user account
POST/api/auth/sign-outRevoke the current session
GET/api/auth/sessionRetrieve the active session

📧Password Reset

POST/api/auth/forgot-passwordInitiate a password reset flow
POST/api/auth/reset-passwordComplete reset using a token

✉️Email Verification

POST/api/auth/send-verification-emailSend a verification email
POST/api/auth/verify-emailConfirm email with a token

🏢Organization

POST/api/auth/organization/createCreate a new tenant organization
GET/api/auth/organization/listList organizations for the current user
POST/api/auth/organization/set-activeSwitch the active organization

🛡️JWT & JWKS

GET/api/auth/.well-known/jwks.jsonPublic key set — used by APIM for JWT validationpublic
GET/api/auth/.well-known/openid-configurationOpenID Connect discovery documentpublic
POST/api/auth/get-tokenExchange session cookie for a signed JWT