injected service use to handle the onetime token related operations
authenticate secrets
injected logger used to handle the logging
request context [headers, body, params, query]. Note:
body.token
is requiredbody.findgerprint
defaulted to ''
body.target
defaulted to ''
200 Status OK
{
data: {
token: string;
},
status: 200,
}
This handler will invalidate token by applying the following steps in sequence:
Get token, fingerprint and target from request body
Verify token is not null
Verify token is stateful
Invalidate token (onetimeTokenService.invalidateToken)
Return invalidated token
400 NBError Bad Request
Generated using TypeDoc
Invalidate token handler