Class: CommandTower::Jwt::Encode
- Inherits:
-
Object
- Object
- CommandTower::Jwt::Encode
- Defined in:
- app/services/command_tower/jwt/encode.rb
Constant Summary collapse
- ALGORITHM =
"HS256"
Class Method Summary collapse
Class Method Details
.call(payload:, header: nil) ⇒ Object
9 10 11 |
# File 'app/services/command_tower/jwt/encode.rb', line 9 def self.call(payload:, header: nil) JWT.encode(payload, CommandTower.config.jwt.hmac_secret, ALGORITHM, header || {}) end |