implement delete session

This commit is contained in:
2025-02-14 10:59:51 -06:00
parent 9bfc591fcc
commit 37862e747f
2 changed files with 14 additions and 0 deletions

View File

@@ -226,6 +226,10 @@ WHERE id = ?;
INSERT INTO sessions (id, user_id, expires_at)
VALUES (?, ?, ?);
-- name: DeleteSession :exec
DELETE FROM sessions
WHERE id = ?;
-- name: RevokeClientApproval :exec
DELETE FROM client_approvals
WHERE user_id = ? AND client_id = ?;