Make magic link single use and reduce duration to 15min

Signed-off-by: Émile Ré <emile@getprobo.com>
This commit is contained in:
Émile Ré
2026-01-16 12:44:24 +04:00
committed by Bryan Frimin
parent 2bd2c5c215
commit 5384e12ced
6 changed files with 192 additions and 13 deletions

View File

@@ -0,0 +1,6 @@
CREATE TABLE iam_tokens (
id TEXT PRIMARY KEY,
hashed_value BYTEA NOT NULL,
created_at TIMESTAMP WITH TIME ZONE NOT NULL,
CONSTRAINT iam_tokens_hashed_value_unique UNIQUE (hashed_value)
);