Generate and store JWT secret in DB

This commit is contained in:
aditya.chandel
2025-03-08 16:25:17 -07:00
parent a562701c43
commit 7da452e4eb
6 changed files with 106 additions and 16 deletions
@@ -1,3 +1,10 @@
CREATE TABLE IF NOT EXISTS jwt_secret
(
id SERIAL PRIMARY KEY,
secret TEXT NOT NULL,
created_at TIMESTAMP DEFAULT NOW()
);
CREATE TABLE IF NOT EXISTS library
(
id BIGINT AUTO_INCREMENT PRIMARY KEY,