Auth
Managed user authentication
Add user authentication with a single configuration option. Ploy Auth creates the user tables in a database you own, serves sign-in with email and password, passkeys, Google, Apple, and GitHub, each toggled per project from the dashboard, and ships React components for the forms, so your app can act on behalf of a signed-in user from the first deploy.
Authentication Dashboard
Total Users
+12 this week
Active Sessions
Currently active
Sign Ups Today
+5 from yesterday
Email Verified
1,172 of 1,247
Recent Users
Users who signed up recently
| ID | Verified | Created | Last Sign In | |
|---|---|---|---|---|
| usr_a1b2c3d4... | alice@example.com | Verified | 1/15/2024 | 2 minutes ago |
| usr_e5f6g7h8... | bob@example.com | Verified | 1/14/2024 | 1 hour ago |
| usr_i9j0k1l2... | carol@example.com | Pending | 1/13/2024 | 3 days ago |
| usr_m3n4o5p6... | david@example.com | Verified | 1/12/2024 | 5 hours ago |
| usr_q7r8s9t0... | eve@example.com | Verified | 1/10/2024 | 1 day ago |
Key Features
Secure by Default
scrypt password hashing, a per-project signing secret, and rate-limited sign-in endpoints, with nothing for you to configure.
Session Cookies
httpOnly cookie sessions with revocation, served from /_ploy/auth/* endpoints on your own domain.
React Components
AuthProvider, SignInForm, and SignUpForm from @meetploy/auth-react, with dark mode support.
Your Database
Users live in a SQLite database attached to your project, queryable like any other table.
Auth Configuration
Enable auth with a single line in your ploy.yaml file.
kind: dynamic
build: pnpm build
out: dist
auth:
binding: AUTH_DB