class Athena::Mercure::Spec::AssertingTokenFactory
inherits Reference
#
An AMC::TokenFactory::Interface implementation that will assert it was called with the expected arguments to #create.
Included modules
Athena::Mercure::TokenFactory::Interface
Constructors#
.new(token : String, grants : Array(AMC::Grant) = [] of AMC::Grant, additional_claims : Hash(String, String) = {} of String => String)#
Methods#
#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.