Skip to content

Instantly share code, notes, and snippets.

View brunofacca's full-sized avatar

Bruno Facca brunofacca

  • Lifetime Value Co.
  • Portugal
View GitHub Profile
@brunofacca
brunofacca / rails_api_token_auth_with_tiddle.md
Last active October 13, 2023 00:55
Rails API token authentication with Tiddle gem in apps with web views

This gist attempts to explain how to implement token authentication in Rails, using Devise and Tiddle. Tiddle was designed to provide token auth for API-only Rails apps. However, the following instructions will enable you to use it in Rails apps which have both APIs and web views.

##Why Tiddle?

Devise is the obvious choice for authentication on Rails. However, token authentication was