chirpy_server/sql/queries/update_token.sql

6 lines
125 B
MySQL
Raw Normal View History

2024-10-25 23:31:57 +02:00
-- name: RevokeRefreshToken :exec
UPDATE refresh_tokens
SET
revoked_at = NOW(),
updated_at = NOW()
WHERE token = $1;