struct Athena::Mercure::TokenProvider::Factory

Overview

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

Included Modules

Defined in:

token_provider/factory.cr

Constructors

Instance Method Summary

Instance methods inherited from module Athena::Mercure::TokenProvider::Interface

jwt : String jwt

Constructor Detail

def self.new(factory : AMC::TokenFactory::Interface, subscribe : Array(String) = [] of String, publish : Array(String) = [] of String) #

[View source]

Instance Method Detail

def jwt : String #

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


[View source]