Migrating production infrastructure? Get up to ₹10,000 in migration credits. Apply now
voroaDocs
Voroa Postgres

Add sign-up and login to your app with Auth on Voroa PostgreSQL

Turn on Auth for a Voroa PostgreSQL database to get sign-up, login, email confirmation, password reset and Google login, with no limit on active users.

To add sign-up and login to your app on Voroa, open your PostgreSQL database, go to the Auth tab and select Turn on Auth. Your app then calls one address to sign a user up or log them in.

There is no limit on monthly active users. Auth runs inside the database size you already pay for. There is no price per user and no separate Auth plan. If your app grows, you move the database to a larger size, the same way you would for any other reason.

How Auth works: your app calls the Auth URL over HTTPS, Auth stores users in your PostgreSQL database in India, and sends email through test mail or your own mail server

What you get

  • Sign-up and login with an email address and a password.
  • An email to confirm a new address, and an email to reset a forgotten password.
  • Login with Google.
  • A login token your own server can check, and a refresh token to stay logged in.
  • A list of your users in the Voroa dashboard, where you can delete one.

Your users are stored in your own database, in a schema named auth. Your Voroa backups already include them, and you can read them with SQL like any other table.

Turn it on

  1. Open the database and select Auth in the sidebar.
  2. Read the short terms, tick the box, and select Turn on Auth. It takes a few seconds.
  3. Copy the Auth URL shown on the tab.

Only the workspace owner or an admin can turn Auth on, because turning it on accepts the Auth terms for the workspace: section 7B of the Terms of Service and section 3A of the Data Processing Agreement.

Auth is available on managed PostgreSQL databases in an India region. If your database already has a schema named auth that you made yourself, rename it first; Voroa will not write into a schema it did not create.

Use it from your app

Every call goes to your Auth URL.

Sign a user up:

bash
curl -X POST 'https://<your-auth-url>/signup' \
  -H 'Content-Type: application/json' \
  -d '{"email":"[email protected]","password":"a-long-password"}'

Log a user in. The reply holds an access_token and a refresh_token:

bash
curl -X POST 'https://<your-auth-url>/token?grant_type=password' \
  -H 'Content-Type: application/json' \
  -d '{"email":"[email protected]","password":"a-long-password"}'

Ask who a token belongs to:

bash
curl 'https://<your-auth-url>/user' -H 'Authorization: Bearer <access_token>'

Check a token on your own server

A login token is signed. Your server checks the signature with the public keys at the Public keys address on the Auth tab. There is no secret to copy into your app, and nothing to rotate by hand.

An access token lasts one hour. Your app swaps the refresh token for a new one before it runs out.

Email

Auth sends two kinds of email for you: confirm your address, and reset your password. You choose how they are sent.

Test email is the default. Voroa sends the email, and only to members of your Voroa workspace, a few an hour. It lets you try sign-up the minute you turn Auth on. A sign-up from any other address is refused with a clear message: test email goes to members of your workspace only.

Your own mail server is what you use for real users. Enter your SMTP provider’s host, port, user name, password and the address the email comes from. Ports 465, 587 and 2525 are supported. The password is stored encrypted and is never shown again; to change it, type a new one.

Connect your own mail server before you launch.

Google login

  1. In your Google Cloud project, create an OAuth client for a web application.
  2. Add the redirect address shown on the Auth tab to that client.
  3. Paste the client ID and client secret into the Auth tab and save.

The client secret is stored encrypted and is never shown again.

Where users land

Site URL is where a user arrives after they confirm their email or reset a password. Redirect URLs are other addresses your app may send a user back to after login. Add up to 20. Until you set a Site URL, a user who confirms their email sees a plain “Your email address is confirmed” page.

Manage users

The Users list on the Auth tab shows each user’s email, how they signed up, whether the address is confirmed, and when they last logged in.

Deleting a user cannot be undone. A login that user already has keeps working until it expires, up to one hour.

Turn it off

Select Turn off Auth at the bottom of the tab. Sign-up and login stop straight away. Your users stay in your database, and turning Auth on again brings them back with the same accounts.

Things to know

  • On a free database, Auth pauses when the database pauses, and starts again when the database does.
  • While a database is being moved to another server, sign-up is unavailable for the short time the database is read-only.
  • Auth is for PostgreSQL. It is not available on MySQL or Key-Value databases.
  • These are not available yet: login with a phone number, one-time codes, magic links, two-step verification for your users, other login providers, and your own domain for the Auth address.
Last updated November 19, 2026