Sha256: a93fed0ab965e2caa70c79fa2c946ee27a19801752c42b0f8778a4525e503b3b

Contents?: true

Size: 643 Bytes

Versions: 4

Compression:

Stored size: 643 Bytes

Contents

require "tiddle/version"
require "tiddle/model"
require "tiddle/strategy"
require "tiddle/rails"
require "tiddle/token_issuer"

module Tiddle
  def self.create_and_return_token(resource, request, options = {})
    TokenIssuer.build.create_and_return_token(resource, request, options)
  end

  def self.expire_token(resource, request)
    TokenIssuer.build.expire_token(resource, request)
  end

  def self.purge_old_tokens(resource)
    TokenIssuer.build.purge_old_tokens(resource)
  end
end

Devise.add_module :token_authenticatable,
                  model: 'tiddle/model',
                  strategy: true,
                  no_input: true

Version data entries

4 entries across 4 versions & 1 rubygems

Version Path
tiddle-1.4.0 lib/tiddle.rb
tiddle-1.3.0 lib/tiddle.rb
tiddle-1.2.0 lib/tiddle.rb
tiddle-1.1.0 lib/tiddle.rb