Module: JWT::Auth

Defined in:
lib/jwt/auth/token.rb,
lib/jwt/auth/version.rb,
lib/jwt/auth/configuration.rb,
lib/jwt/auth/authentication.rb,
lib/jwt/auth/authenticatable.rb

Defined Under Namespace

Modules: Authenticatable, Authentication Classes: Token

Constant Summary collapse

VERSION =
'1.2.0'

Class Attribute Summary collapse

Class Method Summary collapse

Class Attribute Details

.modelObject

Returns the value of attribute model.



6
7
8
# File 'lib/jwt/auth/configuration.rb', line 6

def model
  @model
end

.secretObject

Returns the value of attribute secret.



6
7
8
# File 'lib/jwt/auth/configuration.rb', line 6

def secret
  @secret
end

.token_lifetimeObject

Returns the value of attribute token_lifetime.



6
7
8
# File 'lib/jwt/auth/configuration.rb', line 6

def token_lifetime
  @token_lifetime
end

Class Method Details

.configure {|JWT::Auth| ... } ⇒ Object

Yields:



8
9
10
# File 'lib/jwt/auth/configuration.rb', line 8

def configure
  yield JWT::Auth
end