Skip to content

A sample to demonstrate Setup of authentication with JWT tokens using devise and devise-JWT libraries

License

Notifications You must be signed in to change notification settings

nandhae/Rails5-api-authentication-with-JWT-using-devise

Repository files navigation

README

A Rails 5 API app to demonstrate setup of authentication with JWT using devise.

Setting up complete authentication flow for a service can be really painful. By using devise and devise-jwt libraries we can set up entire authentication flow with rails in minutes.

You can find my detailed blog with step by step instructions on the setup.

Repo Setup Instructions

Setup the databases

$ rake db:create
$ rake db:migrate
$ rake db:seed

You can also run the following instead of the above 3 commands

$ rake db:setup

To drop the database, run

$ rake db:drop

Run the API server

$ rails s

About

A sample to demonstrate Setup of authentication with JWT tokens using devise and devise-JWT libraries

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published