diff --git a/src/lib/error/unleash-error.test.ts b/src/lib/error/unleash-error.test.ts index 2df0727b0e..3369d10840 100644 --- a/src/lib/error/unleash-error.test.ts +++ b/src/lib/error/unleash-error.test.ts @@ -374,6 +374,7 @@ describe('Error serialization special cases', () => { type: 'password', path: `base-path/auth/simple/login`, message: 'You must sign in order to use Unleash', + defaultHidden: true, options: [ { type: 'google', diff --git a/src/lib/types/authentication-required.ts b/src/lib/types/authentication-required.ts index 9efd6579b4..b9887ac165 100644 --- a/src/lib/types/authentication-required.ts +++ b/src/lib/types/authentication-required.ts @@ -39,6 +39,7 @@ class AuthenticationRequired extends UnleashError { ...super.toJSON(), path: this.path, type: this.type, + defaultHidden: this.defaultHidden, ...(this.options ? { options: this.options } : {}), }; }