DeviseJwtControllers

Build Status Maintainability Test Coverage Gem Version

This gem add devise-jwt JSON-like controllers to your application.

Installation

Add this line to your application's Gemfile:

gem 'devise_jwt_controllers'

And then execute:

$ bundle

Or install it yourself as:

$ gem install devise_jwt_controllers

Usage

Setup devise an devise-jwt as normal.

You then just replace your devise_for in config/routes.rb with devise_jwt_for.

devise_jwt_for accepts the same arguments as devise_for, and configurations.

If you are only planning to use it as an API only, remember to configure devise to respond only to JSON:

In your config/initializers/devise.rb add:

config.jwt do |jwt|
  jwt.secret = 'Some secret key'
end

config.navigational_formats = %i[json]

Development

After checking out the repo, run bin/setup to install dependencies. Then, run rake spec to run the tests. You can also run bin/console for an interactive prompt that will allow you to experiment.

To install this gem onto your local machine, run bundle exec rake install. To release a new version, update the version number in version.rb, and then run bundle exec rake release, which will create a git tag for the version, push git commits and tags, and push the .gem file to rubygems.org.

Contributing

Bug reports and pull requests are welcome on GitHub at https://github.com/[USERNAME]/devise_jwt_controllers. This project is intended to be a safe, welcoming space for collaboration, and contributors are expected to adhere to the Contributor Covenant code of conduct.

License

The gem is available as open source under the terms of the MIT License.

About

This project was developed by Leon Calermo and Ramiro Rojo.

Maintainers: Leon Calermo

Contributors: Ramiro Rojo

This gem is eveloped at Wolox:

Wolox

Code of Conduct

Everyone interacting in the DeviseJwtControllers project’s codebases, issue trackers, chat rooms and mailing lists is expected to follow the code of conduct.