ezidam: apps: archive, and revoke refresh tokens associated with app
This commit is contained in:
parent
956f28f7e5
commit
e06bd31b4c
11 changed files with 159 additions and 2 deletions
5
crates/database/queries/apps/archive.sql
Normal file
5
crates/database/queries/apps/archive.sql
Normal file
|
|
@ -0,0 +1,5 @@
|
|||
update apps
|
||||
|
||||
set is_archived = 1
|
||||
|
||||
where id is ?
|
||||
|
|
@ -0,0 +1,6 @@
|
|||
update refresh_tokens
|
||||
|
||||
set revoked_at = CURRENT_TIMESTAMP
|
||||
|
||||
where app is ?
|
||||
and revoked_at is null
|
||||
Loading…
Add table
Add a link
Reference in a new issue