Shared logic to logout by revoking the refresh token and clearing the cookie.
Revokes the given refresh token.