Module: Tiddle

Defined in:
lib/tiddle.rb,
lib/tiddle/rails.rb,
lib/tiddle/version.rb,
lib/tiddle/model_name.rb,
lib/tiddle/token_issuer.rb

Defined Under Namespace

Classes: Engine, ModelName, TokenIssuer

Constant Summary collapse

VERSION =
"1.8.1".freeze

Class Method Summary collapse

Class Method Details

.create_and_return_token(resource, request, options = {}) ⇒ Object



8
9
10
# File 'lib/tiddle.rb', line 8

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

.expire_token(resource, request) ⇒ Object



12
13
14
# File 'lib/tiddle.rb', line 12

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

.purge_old_tokens(resource) ⇒ Object



16
17
18
# File 'lib/tiddle.rb', line 16

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