Skip to content
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app/controllers/api/v1/users/sessions_controller.rb
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ def destroy
api_token = request.headers["Authorization"]&.split(" ")&.last
# find user's api credentials by access token
api_credential = ApiCredential.find_by(api_token_digest: Digest::SHA256.hexdigest(api_token))
# set api and refresh tokens to nil; otherwise render 401
# set api and refresh tokens to nil; otherwise render 401 0000
if api_credential
api_credential.revoke_api_token
api_credential.revoke_refresh_token
Expand Down
Loading