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 2394b9d commit ba8c987Copy full SHA for ba8c987
1 file changed
app/controllers/api/v1/users/sessions_controller.rb
@@ -11,7 +11,7 @@ def create
11
def destroy
12
# fetch access token from request header
13
api_token = request.headers["Authorization"]&.split(" ")&.last
14
- # find user's api credentials by access token
+ # 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 0000
17
if api_credential
0 commit comments