struct

Athena::Mercure::TokenProvider::Factory

Inherits Athena::Mercure::TokenProvider::Interface < Struct < Value < Object

A token provider implementation that provides the JWT via an AMC::TokenFactory::Interface instance.

Constructors

new(factory : AMC::TokenFactory::Interface, subscribe : Array(String) = [] of String, publish : Array(String) = [] of String)
Source

Instance methods

jwt

Returns the JWT token used to authenticate requests to the Mercure hub.

Source