struct Athena::Mercure::TokenFactory::JWT
inherits Struct
#
A token factory implementation based on the Crystal JWT shard.
Included modules
Athena::Mercure::TokenFactory::Interface
Constructors#
.new(jwt_secret : String, algorithm : ::JWT::Algorithm = :hs256, jwt_lifetime : Int32 | Time::Span | Nil = 3600, passphrase : String = "")#
Methods#
#create(subscribe : Array(String) | Nil = [] of String, publish : Array(String) | Nil = [] of String, additional_claims : Hash | Nil = nil) : String#
:inherit: