All Templates / Authentication

Better Auth

Better Auth

A ready to use auth server! Secure by default and extremely configurable.

Deploy Better Auth

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 server
  • GET /api/auth/reference - Scalar docs for all of the OpenAPI endpoints
  • GET /api/auth/sign-out - Logout a user
  • POST /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.


Deploy Now

Details

Carlos Medim's Projects

Created on Mar 16, 2025

24 total projects

7 active projects

100% success on recent deploys

TypeScript

Authentication



More templates in this category

View Template
Keycloak

Keycloak

Keycloak template with keywind theme + apple and discord providers


beuz's Projects

View Template
bknd

bknd

Feature-rich yet lightweight backend


View Template
Authorizer

Authorizer

Open-source authentication and authorization solution for your business.


Lakhan Samani's Projects