diff --git a/waspc/headless-test/examples/todoApp/src/auth/hooks.ts b/waspc/headless-test/examples/todoApp/src/auth/hooks.ts index 256574807c..736195cab9 100644 --- a/waspc/headless-test/examples/todoApp/src/auth/hooks.ts +++ b/waspc/headless-test/examples/todoApp/src/auth/hooks.ts @@ -29,7 +29,7 @@ export const onBeforeLogin: OnBeforeLoginHook = async ({ providerId }) => { export const onAfterLogin: OnAfterLoginHook = async ({ prisma, user }) => { await prisma.user.update({ - where: { id: user!.id }, + where: { id: user.id }, data: { isOnAfterLoginHookCalled: true, },