trips) add local auth provider and login picker
Some checks failed
PR Checks / lint-test-and-docker-build (pull_request) Failing after 23s

This commit is contained in:
2026-02-22 04:52:17 +00:00
parent 42fe36ca86
commit d44db1489c
11 changed files with 483 additions and 17 deletions

View File

@@ -43,6 +43,19 @@ bun install
bun run dev
```
## Local authentication
Local auth is optional and off by default. Enable it with the env vars in `.env.example` and ensure users have a matching row in both `users` and `local_credentials`.
To seed a local password hash, use Argon2id with the configured parameters and insert it into `local_credentials`:
```sql
INSERT INTO local_credentials (user_id, password_hash)
VALUES ('<user-id>', '<argon2id hash>');
```
Passwords must be at least 12 characters. Avoid storing plaintext passwords anywhere.
## Quality and Tests
```sh