diff --git a/packages/core/src/routes/sign-in-experience/index.ts b/packages/core/src/routes/sign-in-experience/index.ts index b731b07de..a7cdbfb21 100644 --- a/packages/core/src/routes/sign-in-experience/index.ts +++ b/packages/core/src/routes/sign-in-experience/index.ts @@ -21,11 +21,18 @@ export default function signInExperiencesRoutes( * As we only support single signInExperience settings for V1 * always return the default settings in DB for the /sign-in-exp get method */ - router.get('/sign-in-exp', async (ctx, next) => { - ctx.body = await findDefaultSignInExperience(); + router.get( + '/sign-in-exp', + koaGuard({ + response: SignInExperiences.guard, + status: [200], + }), + async (ctx, next) => { + ctx.body = await findDefaultSignInExperience(); - return next(); - }); + return next(); + } + ); router.patch( '/sign-in-exp', @@ -40,6 +47,8 @@ export default function signInExperiencesRoutes( }) ) .partial(), + response: SignInExperiences.guard, + status: [200], }), async (ctx, next) => { const {