chirpy_server/sql/queries/update_token.sql

6 lines
125 B
SQL

-- name: RevokeRefreshToken :exec
UPDATE refresh_tokens
SET
revoked_at = NOW(),
updated_at = NOW()
WHERE token = $1;