Authentication & session management service for Reloop — OAuth, email/OTP, and org-based access.
2.6K
The Auth Service is the central authentication and session management microservice in the Reloop platform. It handles user sign-up, sign-in, OAuth social logins (Google, GitHub), OTP-based email verification, and organization-scoped session management — all powered by Better Auth.
Built on Bun + Elysia for ultra-low latency, backed by PostgreSQL and Redis.
/api/auth/openapi| Resource | Link |
|---|---|
| 📚 Documentation | reloop.sh/docs/setup/backend/auth |
| 🌐 Production API | api.reloop.sh/api/auth |
| 📜 OpenAPI Spec | reloop.sh/api/auth/openapi |
| 🐙 Source Code | github.com/reloop-labs/reloop |
| 💬 Discord | discord.gg/reloop |
| 🐦 Twitter / X | @reloophq |
| 🆘 Support | reloop.sh/support |
docker pull reloopsh/be-auth:latest
docker run -d \
-p 8000:8000 \
-e PG_URL=postgresql://user:password@host:5432/reloop \
-e REDIS_URL=redis://:password@host:6379 \
-e NATS_URL=nats://host:4222 \
-e BASE_URL=https://your-domain.com \
-e BETTER_AUTH_SECRET=your-secret-here \
-e GOOGLE_CLIENT_ID=your-google-client-id \
-e GOOGLE_CLIENT_SECRET=your-google-client-secret \
-e GITHUB_CLIENT_ID=your-github-client-id \
-e GITHUB_CLIENT_SECRET=your-github-client-secret \
reloopsh/be-auth:latest
The service will be available at http://localhost:8000/api/auth.
| Variable | Default | Description |
|---|---|---|
PORT | 8000 | Port the server listens on |
PG_URL | — | PostgreSQL connection string |
REDIS_URL | — | Redis connection string |
NATS_URL | — | NATS messaging server URL |
BASE_URL | — | Public base URL of the platform |
BETTER_AUTH_SECRET | — | Secret key for session signing |
GOOGLE_CLIENT_ID | — | Google OAuth client ID |
GOOGLE_CLIENT_SECRET | — | Google OAuth client secret |
GITHUB_CLIENT_ID | — | GitHub OAuth client ID |
GITHUB_CLIENT_SECRET | — | GitHub OAuth client secret |
DEFAULT_OTP | — | Override OTP for testing |
DISABLE_SIGNUP | — | Set to true to disable public signups |
NODE_ENV | production | Runtime environment |
This image is one of several microservices that make up the Reloop backend. See the full list at hub.docker.com/u/reloopsh.
Content type
Image
Digest
sha256:51b5561b2…
Size
430.1 MB
Last updated
4 days ago
docker pull reloopsh/be-auth