ezidam: refactor jwt and refresh token generate in "tokens" mod
This commit is contained in:
parent
23b1e3ea4f
commit
9687116063
13 changed files with 179 additions and 59 deletions
6
crates/database/queries/keys/revoke_all_except_one.sql
Normal file
6
crates/database/queries/keys/revoke_all_except_one.sql
Normal file
|
|
@ -0,0 +1,6 @@
|
|||
update keys
|
||||
|
||||
set revoked_at = CURRENT_TIMESTAMP
|
||||
|
||||
where revoked_at is null
|
||||
and id is not (?)
|
||||
Loading…
Add table
Add a link
Reference in a new issue