I am using rails-api and need to use authenticate_with_http_token
to process a header authorization token, but i get the following error:
NoMethodError (undefined method `authenticate_with_http_token' for ...)
JSON Web Tokens, commonly known as JWT is an open standard for representing and verifying claims securely between a client and a server. It is one of the most popular authentication and authorization techniques employed in modern applications.
Add the following to ApplicationController
include ActionController::HttpAuthentication::Token::ControllerMethods
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With