Skip to content

Commit

Permalink
[434] changed the method of getting the auth token
Browse files Browse the repository at this point in the history
  • Loading branch information
moklidia committed Jun 23, 2023
1 parent 6499976 commit b21e61e
Showing 1 changed file with 2 additions and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,8 @@ def current_user
end

def auth_token
@auth_token ||= request.headers['Authorization']
header = request.headers['Authorization']
header&.split(' ')&.last
end

def current_user_id
Expand Down

0 comments on commit b21e61e

Please sign in to comment.