Skip to content

struct Athena::Mercure::TokenProvider::Static
inherits Struct #

A token provider implementation that provides the JWT as a static value from the constructor.

Included modules

Athena::Mercure::TokenProvider::Interface

Constructors#

.new(token : String)#

View source

Methods#

#jwt : String#

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

View source