diff --git a/src/app/api/idnot/UserController.ts b/src/app/api/idnot/UserController.ts index 36d6ed57..a555e802 100644 --- a/src/app/api/idnot/UserController.ts +++ b/src/app/api/idnot/UserController.ts @@ -36,6 +36,7 @@ export default class UserController extends ApiController { if (!code) throw new Error("code is required"); const idNotToken = await this.idNotService.getIdNotToken(code); + if (!idNotToken) { this.httpValidationError(response, "IdNot token undefined");