struct Athena::Mercure::TokenFactory::JWT

Included Modules

Defined in:

token_factory/jwt.cr

Constructors

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 = "") #

[View source]

Instance Method Detail

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

[View source]