Skip to content

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

A token provider implementation that provides the JWT via the return value of a callback block.

Included modules

Athena::Mercure::TokenProvider::Interface

Constructors#

.new : self#

View source

.new(callback : Proc(String))#

View source

Methods#

#jwt : String#

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

View source