Function failWRDAPIUserAuth
- failWRDAPIUserAuth(
error: string,
errorCode?: Unauthorized | Forbidden,
): OpenAPIAuthorization<AuthorizedWRDAPIUser>Parameters
- error: string
- errorCode: Unauthorized | Forbidden = HTTPErrorCode.Forbidden
Returns OpenAPIAuthorization<AuthorizedWRDAPIUser>
Craft a 403/401 error response. Should be used by verifyWRDAPIUser wrappers