Add full refresh token and access token function

Signed-off-by: Asai Neko <sugar@sne.moe>
This commit is contained in:
2025-12-25 16:13:05 +08:00
parent 32a27d974a
commit 3a86d387bd
13 changed files with 274 additions and 195 deletions

View File

@@ -1,4 +1,5 @@
server:
application: nixcn-cms
address: :8000
external_url: https://example.com
debug_mode: false
@@ -22,5 +23,6 @@ secrets:
jwt_secret: something
turnstile_secret: something
ttl:
magic_link_ttl: 15000
jwt_ttl: 86400000
magic_link_ttl: 10m
jwt_ttl: 15s
refresh_ttl: 48h