module Athena::Mercure::TokenFactory::Interface
#
A token factory is responsible for creating the token used to authenticate requests to the Mercure hub.
Direct including types
Athena::Mercure::Spec::AssertingTokenFactory
Athena::Mercure::TokenFactory::DefaultClaims
Athena::Mercure::TokenFactory::JWT
Methods#
abstract #create(grants : Array(AMC::Grant) = [] of AMC::Grant, additional_claims : Hash | Nil = nil) : String#
Returns a JWT token that is allowed the provided grants, such as to subscribe or publish to some topics. Optionally, additional_claims may be added to the JWT.