Sha256: 963e1d8759513351f1fec56f22968b98dd7b2edf36a2a7472fcd2f091a14ae98
Contents?: true
Size: 645 Bytes
Versions: 6
Compression:
Stored size: 645 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
6 entries across 6 versions & 1 rubygems
Version | Path |
---|---|
tiddle-1.8.1 | lib/tiddle.rb |
tiddle-1.8.0 | lib/tiddle.rb |
tiddle-1.7.1 | lib/tiddle.rb |
tiddle-1.7.0 | lib/tiddle.rb |
tiddle-1.6.0 | lib/tiddle.rb |
tiddle-1.5.0 | lib/tiddle.rb |