Email and password
Always on. Require a verified email before sign-in if you like, and users get reset and verification links that return them to your site.
Give your app's users email and password, GitHub or Google sign-in. Call a plain HTTP API from a website, a mobile app or a server, and get back a token.
Email, GitHub and Google sign-in for your app's users, as a simple HTTP API.
Always on. Require a verified email before sign-in if you like, and users get reset and verification links that return them to your site.
Use CloudHike.dev's shared OAuth apps or your own client ID and secret. Provider users land in the same Users list.
No cookies. Sign-in returns a token you send as a Bearer header, from a website, a mobile app or a server.
Users and sessions live in managed storage, or in your project's Postgres under the auth schema. One toggle moves them.
Search and delete users from Open Auth, or from your server with the admin endpoints and the secret key.
Change the sender name, send from your verified domain and edit the verification and reset emails with a live preview.
Click Deploy on the Auth card. You get AUTH_URL, AUTH_PUBLISHABLE_KEY and AUTH_SECRET_KEY.
Send the publishable key as x-api-key and call sign-up or sign-in. Both return { token, user }.
Keep the token in an HTTP-only cookie your server sets, and call get-session on each request.
const AUTH_URL = process.env.AUTH_URL!;
const headers = {
"content-type": "application/json",
"x-api-key": process.env.AUTH_PUBLISHABLE_KEY!,
};
export async function signIn(email: string, password: string) {
const res = await fetch(`${AUTH_URL}/sign-in/email`, {
method: "POST",
headers,
body: JSON.stringify({ email, password }),
});
if (!res.ok) throw new Error((await res.json()).message);
return res.json(); // { token, user }
}
export async function getSession(token: string) {
const res = await fetch(`${AUTH_URL}/get-session`, {
headers: { ...headers, authorization: `Bearer ${token}` },
});
return res.ok ? res.json() : null;
}Same project, same .env, same bill.
Postgres, auth, storage, Redis, email and AI models. One API key.