Authentication with Rails authenticate with http token

suggest change
authenticate_with_http_token do |token, options|
  @user = User.find_by(auth_token: token)
end

You can test this endpoint with curl by making a request like

curl -IH "Authorization: Token token=my-token" http://localhost:3000

Feedback about page:

Feedback:
Optional: your email if you want me to get back to you:


Rails 5 API Authentication:
*Authentication with Rails authenticate with http token

Table Of Contents
49Rails 5 API Authentication
55CSV