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.
1 parent 3bb6a57 commit 2394b9dCopy full SHA for 2394b9d
1 file changed
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