We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
2 parents 3d88c84 + ba8c987 commit d312e43Copy full SHA for d312e43
app/controllers/api/v1/users/sessions_controller.rb
@@ -13,7 +13,7 @@ def destroy
13
api_token = request.headers["Authorization"]&.split(" ")&.last
14
# find user's api credentials by access token
15
api_credential = ApiCredential.find_by(api_token_digest: Digest::SHA256.hexdigest(api_token))
16
- # set api and refresh tokens to nil; otherwise render 401
+ # set api and refresh tokens to nil; otherwise render 401 0000
17
if api_credential
18
api_credential.revoke_api_token
19
api_credential.revoke_refresh_token
0 commit comments