Creates a new instance of GeneratorJwtProvider
with the given
JwtGenerator, additional data and default identity.
Object to delegate the JWT generation to.
Additional data to include with the JWT.
Identity of the user to include in the token when none is provided explicitly by the client.
Returns a Promise
fulfilled with the JWT obtained from the call
to {@link GeneratorJwtProvider.jwtGenerator} JwtGenerator.generateToken
method, passing it the {@link GeneratorJwtProvider.additionalData} and
{@link GeneratorJwtProvider.defaultIdentity}
Implementation of IAccessTokenProvider that generates a new JWT whenever it is requested by the clients.
This class is meant to be used on the server side only.