mirror of
https://github.com/Dvorinka/Bookra.git
synced 2026-06-03 20:13:00 +00:00
43 lines
928 B
Markdown
43 lines
928 B
Markdown
# Bookra Auth Service
|
|
|
|
Standalone auth + internal admin service for Bookra.
|
|
|
|
Primary responsibilities:
|
|
|
|
- email/password auth
|
|
- magic-link auth
|
|
- Google OAuth when configured
|
|
- internal admin dashboard / remote service management
|
|
- optional Neon JWT verification support
|
|
|
|
Not primary billing service:
|
|
|
|
- SaaS billing lives in `apps/backend`
|
|
- Paddle config belongs in backend/frontend env
|
|
|
|
## Commands
|
|
|
|
```bash
|
|
go run ./cmd/api
|
|
go test ./...
|
|
go build ./...
|
|
```
|
|
|
|
## Core Routes
|
|
|
|
- `GET /health`
|
|
- `POST /api/auth/register`
|
|
- `POST /api/auth/login`
|
|
- `POST /api/auth/magic-link`
|
|
- `POST /api/auth/verify`
|
|
- `POST /api/auth/refresh`
|
|
- `GET /api/auth/me`
|
|
- `GET /api/auth/providers`
|
|
- `GET /api/auth/oauth/google`
|
|
- `GET /api/auth/oauth/google/callback`
|
|
- `GET /admin`
|
|
- `GET /admin/api/config`
|
|
- `GET /admin/api/stats`
|
|
|
|
See [apps/auth-service/.env.example](/home/tdvorak/Desktop/PROG+HTML/Bookra/apps/auth-service/.env.example:1).
|