Sha256: a95138539740eb9457e9664cfbde37caf4cb77fe07703fabcad57fa4930d6133
Contents?: true
Size: 779 Bytes
Versions: 5
Compression:
Stored size: 779 Bytes
Contents
require "devise/token_authenticatable/strategy" module Devise module TokenAuthenticatable # Authentication token params key name of choice. E.g. /users/sign_in?some_key=... mattr_accessor :token_authentication_key @@token_authentication_key = :auth_token # Enable the configuration of the TokenAuthenticatable # strategy with a block: # # Devise::TokenAuthenticatable.setup do |config| # config.token_authentication_key = :other_key # end # def self.setup yield self end end end # Register TokenAuthenticatable module in Devise. Devise::add_module :token_authenticatable, model: 'devise/token_authenticatable/model', strategy: true, no_input: true
Version data entries
5 entries across 5 versions & 1 rubygems