Baike.dev
All toolsOnline toolsAI codingTrendingOpen sourceNewsSubmit
Log in
< Back to tools
D

devise_token_auth

> 后端框架
Open source

Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.

3.6K stars0 likes2 views
WebsiteGitHub

About

Token based authentication for Rails JSON APIs. Designed to work with jToker and ng-token-auth.

Devise Token Auth

Simple, multi-client and secure token-based authentication for Rails.

If you're building SPA or a mobile app, and you want authentication, you need tokens, not cookies. This gem refreshes the tokens on each request, and expires them in a short time, so the app is secure. Also, it maintains a session for each client/device, so you can have as many sessions as you want.

Main features

  • Seamless integration with:
    • ng-token-auth for AngularJS
    • Angular-Token for Angular
    • redux-token-auth for React with Redux
    • jToker for jQuery
    • vanilla-token-auth for an unopinionated client
    • flutter_token_auth for Flutter
  • Oauth2 authentication using OmniAuth.
  • Email authentication using Devise, including:
    • User registration, update and deletion
    • Login and logout
    • Password reset, account confirmation
  • Support for multiple user models.
  • It is secure.

This project leverages the following gems:

  • Devise
  • OmniAuth

Installation

Add the following to your Gemfile:

ruby
gem 'devise_token_auth'

Then install the gem using bundle:

bash
bundle install

Docs

Need help?

Please use StackOverflow for help requests and how-to questions.

Please open GitHub issues for bugs and enhancements only, not general help requests. Please search previous issues (and Google and StackOverflow) before creating a new issue.

Please read the issue template before posting issues.

FAQ

Contributors wanted!

See our Contribution Guidelines. Feel free to submit pull requests, review pull requests, or review open issues. If you'd like to get in contact, Zach Feldman has been wrangling this effort, you can reach him with his name @gmail. Further discussion of this in this issue.

We have some bounties for some issues, check them out!

Live Demos

Here is a demo of this app running with the Angular-Token service and Angular.

The fully configured api used in these demos can be found here.

Contributors

Backers

Thank you to all our backers! [Become a backer]

Sponsors

Support this project by becoming a sponsor. Your logo will show up here with a link to your website. [Become a sponsor]

License

This project uses the WTFPL

Issues· 207 open

View all issuesOpen on GitHub

No open issues yet, or sync has not completed.

> Tags

Rubyapiauthenticationdeviseoauth

No comments yet. Be the first to share.

> Details

PublishedAug 1, 2026
UpdatedSep 17, 2026
Category后端框架
PricingOpen source

> Related tools

N
Node.js
基于 V8 的 JavaScript 运行时
D
Django
Python 高级 Web 框架
S
Spring Boot
Java 生态主流微服务框架