Skip to content

struct Athena::Mercure::TokenFactory::JWT
inherits Struct #

Included modules

Athena::Mercure::TokenFactory::Interface

Constructors#

.new(jwt_secret : String, algorithm : ::JWT::Algorithm = :hs256, jwt_lifetime : Int32 | Time::Span | Nil = 3600, passphrase : String = "")#

View source

Methods#

#create(subscribe : Array(String) | Nil = [] of String, publish : Array(String) | Nil = [] of String, additional_claims : Hash | Nil = nil) : String#

View source