Class: ApiEngineBase::Jwt::LoginCreate
- Inherits:
-
ServiceBase
- Object
- ServiceBase
- ApiEngineBase::Jwt::LoginCreate
- Defined in:
- app/services/api_engine_base/jwt/login_create.rb
Constant Summary
Constants inherited from ServiceBase
ServiceBase::ON_ARGUMENT_VALIDATION
Instance Method Summary collapse
Methods inherited from ServiceBase
inherited, #internal_validate, #service_base_logging, #validate!
Methods included from ArgumentValidation
Methods included from ServiceLogging
#aletered_message, #class_name, #log, #log_error, #log_info, #log_prefix, #log_warn, #logger, #service_id
Instance Method Details
#call ⇒ Object
9 10 11 |
# File 'app/services/api_engine_base/jwt/login_create.rb', line 9 def call context.token = Encode.(payload:).token end |
#payload ⇒ Object
13 14 15 16 17 18 19 |
# File 'app/services/api_engine_base/jwt/login_create.rb', line 13 def payload { generated_at: Time.now.to_i, user_id: user.id, verifier_token: user.retreive_verifier_token!, } end |