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
curl -IH "Authorization: Token token=my-token" http://localhost:3000
Topic Id: 7852
Example Ids: 25539
This site is not affiliated with any of the contributors.
Content on the page is taken from Stack Overflow Documentation
This site is NOT affiliated with Stack Overflow or any of the contributors. | Privacy Policy | Terms of Service