Leantel Auth
Sign-in and user management for your apps
Leantel Auth provides hosted sign-in pages, passkeys, 2-step verification and role-based access control. Your API verifies each request locally, without an extra network call.
Using an AI coding assistant? Give it this instruction:
Add Leantel Auth to my app: leantel.dev/auth.mdHow it works
People sign in once per session on Leantel’s hosted pages, and your app receives a signed access token. Your API verifies the token on every request, either at Amazon API Gateway or in your code.
Hosted pages with your branding
Leantel hosts the sign-in, sign-up, password recovery and account pages. You set the name, logo and colour. Your app never sees a password.
- Light and dark themes on desktop and mobile
- Designed to meet WCAG 2.2 level AA
- Support for password managers and passkey autofill
Features
Passkeys and 2-step verification
Offer phishing-resistant passkeys and codes from authenticator apps.
Roles and permissions
Define roles in the console. Permissions are included in each access token as scopes, which you can enforce at the gateway.
Account page
People can change their password, review signed-in devices and manage passkeys on a hosted page.
Webhooks
Receive signed events when people sign up, update their details or delete their account.
Admin API
Create, update and remove users and roles from your backend.
Workspaces
Keep each product in its own workspace, with owner, admin and viewer roles for members.
Protect your API
Use the built-in JWT authorizer in Amazon API Gateway without writing code, or verify tokens in your app with any JWT library.
resource "aws_apigatewayv2_authorizer" "leantel" { api_id = aws_apigatewayv2_api.shop.id authorizer_type = "JWT" identity_sources = ["$request.header.Authorization"] name = "leantel" jwt_configuration { issuer = "https://auth.leantel.dev" audience = ["api_shop"] } }
// issuer is your workspace's sign-in address, such as https://auth.leantel.dev protect := authverify.Middleware(issuer, "api_shop") http.Handle("/orders", protect(orders))
import { createRemoteJWKSet, jwtVerify } from 'jose'; const keys = createRemoteJWKSet(new URL('https://auth.leantel.dev/.well-known/jwks.json')); export async function verify(authorization: string) { const { payload } = await jwtVerify(authorization.replace('Bearer ', ''), keys, { issuer: 'https://auth.leantel.dev', audience: 'api_shop', algorithms: ['RS256'], typ: 'at+jwt', clockTolerance: 60, requiredClaims: ['exp', 'iat', 'sub', 'jti', 'client_id', 'tenant_id'], }); return payload; }
Security
Leantel Auth follows current IETF and NIST guidance. Each of the following controls is enforced in code and covered by automated tests.
OAuth 2.1 with PKCE
Every app uses the authorization code flow with PKCE, the current recommendation for web, mobile and single-page apps.
Signing key rotation
Signing keys are stored encrypted and can be rotated without downtime.
Refresh token replay detection
If an old refresh token is reused more than 10 seconds after rotation, Leantel ends that sign-in and revokes every refresh token from it.
Workspace isolation
Tokens and data from one workspace can't be used in another.
Account enumeration protection
Sign-in and recovery pages don't reveal whether an account exists.
Password policy
Password rules follow NIST SP 800-63B-4, and common or known breached passwords are rejected.
Get started with Leantel Auth
Create an account, then follow the quickstart to add sign-in to your app.