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
5
crates/database/queries/refresh_tokens/revoke_all.sql
Normal file
5
crates/database/queries/refresh_tokens/revoke_all.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
update refresh_tokens
|
||||
|
||||
set revoked_at = CURRENT_TIMESTAMP
|
||||
|
||||
where revoked_at is null
|
||||
Loading…
Add table
Add a link
Reference in a new issue