class EasyJwtAuth::Config

Attributes

algo[R]
expiration[R]
finder_method[R]
secret[R]

Public Class Methods

set_algo(algo) click to toggle source
# File lib/easy_jwt_auth/config.rb, line 6
def set_algo(algo)
  @algo = algo
end
set_expiration(expiration) click to toggle source
# File lib/easy_jwt_auth/config.rb, line 10
def set_expiration(expiration)
  @expiration = expiration
end
set_finder_method(finder_method) click to toggle source
# File lib/easy_jwt_auth/config.rb, line 14
def set_finder_method(finder_method)
  raise InvalidFinderMethod unless finder_method.respond_to?(:call)

  @finder_method = finder_method
end
set_secret(secret) click to toggle source
# File lib/easy_jwt_auth/config.rb, line 20
def set_secret(secret)
  @secret = secret
end