Add example project

This commit is contained in:
Alois 2026-07-02 22:58:57 +02:00
commit db9e65e9d7
18 changed files with 4650 additions and 0 deletions

15
example/.env.example Normal file
View file

@ -0,0 +1,15 @@
# Generate one with:
# pnpm --filter @tauth-example/backend exec cargo run --bin generate_keys
TAUTH_PRIVATE_KEY=
# Your TAuth app/domain identifier.
TAUTH_IDENTIFIER=example.local
# Must be reachable by TAuth. For local testing, expose the backend with a tunnel.
TAUTH_REDIRECT_URL=http://localhost:8787/tauth/callback
# Optional. If Omikron does not return a public key, set it here to enable MTP app-data sync.
TAUTH_HOST_PUBLIC_KEY=
BACKEND_ADDR=127.0.0.1:8787
FRONTEND_URL=http://localhost:5173