feat(auth): use one time token instead of user id #158

This commit is contained in:
2024-09-09 23:03:06 +02:00
parent 68392ab76f
commit f1b249236f
3 changed files with 53 additions and 12 deletions

View File

@@ -0,0 +1,11 @@
-- E.G. email-verifications, password-resets, unsubscribe-from-newsletter etc.
CREATE TABLE user_token (
user_uuid TEXT NOT NULL UNIQUE,
type TEXT NOT NULL,
token TEXT NOT NULL UNIQUE PRIMARY KEY,
created_at DATETIME NOT NULL,
expires_at DATETIME
);