Skip to content

Commit 2394b9d

Browse files
committed
tests
1 parent 3bb6a57 commit 2394b9d

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

app/controllers/api/v1/users/sessions_controller.rb

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ def destroy
1313
api_token = request.headers["Authorization"]&.split(" ")&.last
1414
# find user's api credentials by access token
1515
api_credential = ApiCredential.find_by(api_token_digest: Digest::SHA256.hexdigest(api_token))
16-
# set api and refresh tokens to nil; otherwise render 401
16+
# set api and refresh tokens to nil; otherwise render 401 0000
1717
if api_credential
1818
api_credential.revoke_api_token
1919
api_credential.revoke_refresh_token

0 commit comments

Comments
 (0)