module Hanami::Authentication::Token::ClassMethods
Public Class Methods
extended(base)
click to toggle source
# File lib/hanami/authentication/token.rb, line 46 def self.extended(base) base.class_eval do include Utils::ClassAttribute class_attribute :find_user_block class_attribute :find_token_block end end
Public Instance Methods
token_for_authenticate(&blk)
click to toggle source
# File lib/hanami/authentication/token.rb, line 58 def token_for_authenticate(&blk) self.find_token_block = blk end
user_for_authenticate(&blk)
click to toggle source
# File lib/hanami/authentication/token.rb, line 54 def user_for_authenticate(&blk) self.find_user_block = blk end