Setting Up the Authentication Token
Learn to set up authentication token for the application.
We'll cover the following...
The JWT standard has many implementations in various languages and libraries. The Ruby gem for this function is jwt
. We can use the bundle add
command to add this gem to our Gemfile
.
Once this command is executed, the following line is added to our Gemfile
:
gem "jwt", "~> 2.2"
As discussed earlier, the required gems have already been installed for our app. The ...