Class: Monban::UseCase::Auth::Token::General

Inherits:
Object
  • Object
show all
Includes:
Getto::InitializeWith
Defined in:
lib/monban/use_case/auth/token/general.rb

Instance Method Summary collapse

Instance Method Details

#create(account_id:) ⇒ Object



23
24
25
26
27
28
29
30
31
# File 'lib/monban/use_case/auth/token/general.rb', line 23

def create(account_id:)
   = repository.(account_id: )
  case 
  when "full"  then full.create(account_id: )
  when "authy" then authy.create(account_id: )
  else
    error.server_error! "invalid login: #{} / #{}"
  end
end