This page gets you from a blank project to a working signup / login flow against Archie Auth in a few minutes. After that, see User management, Security, and the REST / GraphQL API references for the full surface.Documentation Index
Fetch the complete documentation index at: https://archie.com/docs/llms.txt
Use this file to discover all available pages before exploring further.
Enable Archie Auth
Open Authentication Providers
Navigate to App Services → Authentication Providers in the Backend Console. Archie Auth sits at the top of the list with a “Built-in” badge.
Click Configure → Enable
Toggle Enable to activate Archie Auth for the current environment. Each environment must be enabled independently.
Wait for setup to complete
On enable, Archie automatically:
- Generates a 2048-bit RSA signing key pair (RS256) for JWT signing.
- Generates a 2048-bit RSA encryption key pair (RSA-OAEP-256) for optional JWE encryption.
- Encrypts both private keys with AES-GCM before storing them.
- Creates the
_auth_credentialstable in the project database. - Registers the identity service with the GraphQL schema.
Configure the policy
The Settings tab is where you tune behavior. Defaults are sensible — you can leave most of it alone — but the configurable fields are:General
| Setting | Default | Description |
|---|---|---|
| Self-Signup | On | Whether anonymous visitors can register themselves. |
| Email Verification | On | Whether users must confirm their email before logging in. |
| Allowed Email Domains | empty | Optional allowlist of domains permitted to sign up. |
Security policy
| Setting | Default | Description |
|---|---|---|
| Password Min Length | 8 | Shortest password accepted. |
| Require Uppercase | Yes | At least one A–Z. |
| Require Lowercase | Yes | At least one a–z. |
| Require Digit | Yes | At least one 0–9. |
| Require Special Char | Yes | At least one of !@#$%^&* etc. |
| Max Failed Attempts | 5 | Failed logins before lockout. 0 disables. |
| Lock Duration | 30 min | How long a locked account stays locked. |
Token configuration
| Setting | Default | Description |
|---|---|---|
| Access Token TTL | 900 seconds (15 min) | Lifetime of an access token. |
| Refresh Token TTL | 2,592,000 seconds (30 days) | Lifetime of a refresh token. |
| JWE Encryption | Off | Encrypt access token claims (turns 3-part JWS into 5-part JWE). |
Quick test — the full auth flow
After enabling, exercise the public endpoints directly withcurl. The same operations are available on the GraphQL API.
1. Sign up
201 Created. A 6-digit verification code lands in the user’s inbox.
2. Confirm the email
3. Log in
For users that confirmed earlier and need a fresh token:4. Use the access token
Send the access token as a Bearer token on subsequent API calls:5. Refresh when the access token expires
Access tokens are short-lived by design. Refresh them with the refresh token:Disabling Archie Auth
If you outgrow Archie Auth or migrate to another provider:FAQ
Why does the access token expire so fast?
Why does the access token expire so fast?
Short-lived access tokens limit the blast radius of a stolen token. The refresh token (30 days by default) is the long-lived credential — it stays on the client and gets rotated on every use, so a leaked refresh token also gets invalidated quickly.
Can I bypass email verification during development?
Can I bypass email verification during development?
Yes — toggle Email Verification off in the Settings tab for that environment. Users sign up and immediately get a usable session. Re-enable it before exposing the environment to real users.
What's the cleanest way to seed admin users?
What's the cleanest way to seed admin users?
Use the GraphQL API with an admin token, or the REST signup endpoint with the
roleId field set to your admin role’s ID. Either way the user goes through the standard signup path so the _auth_credentials row is consistent.What if my emails aren't being delivered?
What if my emails aren't being delivered?
The transport (SES or SMTP) is configured at the platform level. Check the user’s spam folder first. If consistently undelivered, see Email templates for branding and sender configuration, and SendGrid integration if you’re routing through SendGrid.
How do I rotate my signing key?
How do I rotate my signing key?
From the Settings tab or via the
rotateAuthKeys mutation. Old keys are kept for a 1-hour grace period so in-flight tokens stay valid. See Security.