
Better Auth
A ready to use auth server! Secure by default and extremely configurable.
Redis
bitnami/redis:7.2.5
Just deployed
/bitnami
Postgres
railwayapp-templates/postgres-ssl:16
Just deployed
/var/lib/postgresql/data
Better-Auth Server
kadumedim/better-auth-starter
Just deployed
Better Auth Server Template
A simple but production-ready authentication server that gives you complete control over your user data. This template provides email/password authentication with Redis session storage and a clean API, all powered by Hono.js and Bun. For complete documentation, visit Better Auth Docs.
What's Included
- Email/password authentication (login, registration, logout)
- Session management with Redis
- OpenAPI documentation out of the box
- Health check endpoint
- Single binary deployment
Getting Started
After deployment, your auth server will be accessible at your Railway-provided URL. Use the following endpoints:
GET /health
- Check the health of the serverGET /api/auth/reference
- Scalar docs for all of the OpenAPI endpointsGET /api/auth/sign-out
- Logout a userPOST /api/auth/sign-up/email
- Register a new user
{
"name": "",
"email": "",
"password": "",
"callbackURL": ""
}
POST /api/auth/sign-in/email
- Login a user
{
"email": "",
"password": "",
"callbackURL": "",
"rememberMe": ""
}
Connect your frontend using the Better Auth client library and point it to your new auth server or use your own http client.
Template Content
Redis
bitnami/redis:7.2.5Better-Auth Server
kadumedim/better-auth-starter