struct Athena::Mercure::TokenFactory::JWT
- Athena::Mercure::TokenFactory::JWT
- Struct
- Value
- Object
Included Modules
Defined in:
token_factory/jwt.crConstructors
Instance Method Summary
Instance methods inherited from module Athena::Mercure::TokenFactory::Interface
create(subscribe : Array(String) | Nil = [] of String, publish : Array(String) | Nil = [] of String, additional_claims : Hash | Nil = nil) : String
create
Constructor Detail
def self.new(jwt_secret : String, algorithm : ::JWT::Algorithm = :hs256, jwt_lifetime : Int32 | Time::Span | Nil = 3600, passphrase : String = "")
#
Instance Method Detail
def create(subscribe : Array(String) | Nil = [] of String, publish : Array(String) | Nil = [] of String, additional_claims : Hash | Nil = nil) : String
#