acupedia-api/docs
Urvish Prajapati fef5b1f3f9 fix(commerce): auto-verify sequence table on lifespan startup and baseline schema 2026-10-21 14:19:38 +05:30
..
MANUAL_SETUP_GUIDE.md Updated serach fix 2026-09-26 22:13:04 +05:30
README.md Updated serach fix 2026-09-26 22:13:04 +05:30
accupedia_db_v5.sql fix(commerce): auto-verify sequence table on lifespan startup and baseline schema 2026-10-21 14:19:38 +05:30
implementation_plan.md test: add comprehensive pytest suite and auto-updating test badges 2026-10-19 11:46:14 +05:30
schema.md Init Api 2026-09-05 19:29:21 +05:30

README.md

AccuPedia Auth Feature

Bounded-context authentication/identity package for the four-schema database.

Routes

  • POST /auth/register
  • POST /auth/login
  • GET /auth/me
  • GET /auth/profile
  • PUT /auth/profile
  • POST /auth/change-password
  • POST /auth/forgot-password
  • POST /auth/reset-password

GET /auth/me and GET /auth/profile return identity + roles only.

Subscription, entitlement and unlocked-module state are intentionally excluded. Use GET /access/me for access state.

Persistence ownership

This package uses only auth-owned models:

  • auth.app_users
  • auth.roles
  • auth.user_roles
  • auth.password_reset_otps

No content/commerce query is performed by the auth repository.

Passwords

bcrypt only. No SHA/PBKDF2 backward compatibility.

OTP

  • cryptographically generated 6-digit code
  • 15 minute validity
  • previous unused OTPs invalidated
  • account-enumeration-safe forgot-password response
  • email adapter: app.services.email.send_password_reset_email