diff --git a/playground/server/api/[...todos].ts b/playground/server/api/[...todos].ts index f0cd57b..6c4a0a9 100644 --- a/playground/server/api/[...todos].ts +++ b/playground/server/api/[...todos].ts @@ -7,7 +7,7 @@ consola.log(Layer.name) // model from layer base const Todo = useOaModel('Todo') const auth = oaHandler((ev: H3Event) => { - ev.context.user = { fake_user: true, id: '#fakeUser' } + ev.context.user = { fake_user: true, id: new ObjectId() } }, { security: [{ jwtCookie: [] }] })