OptionalajvOptionalauthorizationHuman-readable expiration time for the authorization code. It will be shown in the consent screen.
OptionalcomponentsOptionalincludeWhether to include an error_description property in all error responses.
OptionalissuerIssuer identifier. This is optional in OAuth 2.0 servers, but required in IndieAuth servers.
See also the authorization_response_iss_parameter_supported parameter in
IndieAuth Server Metadata.
OptionallogHandler that runs after the authorization code has been verified. You should use this handler to inform your storage backend that the authorization code has been used.
Handler executed after the user approves the authorization request on the consent screen. It should be used to persist the authorization code generated by the authorization endpoint into your storage backend.
OptionalredirectOptionalreportWhether to include all AJV errors when validation fails.
Function that retrieves an authorization code from some storage.
Optionaltemplates
AJV instance, for validation.