Class: ApiEngineBase::Jwt::Encode
- Inherits:
-
ServiceBase
- Object
- ServiceBase
- ApiEngineBase::Jwt::Encode
- Defined in:
- app/services/api_engine_base/jwt/encode.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
11 12 13 |
# File 'app/services/api_engine_base/jwt/encode.rb', line 11 def call context.token = JWT.encode(payload, ApiEngineBase.config.jwt.hmac_secret, "HS256", header || {}) end |