Skip to content

Commit

Permalink
fix: 🐛 user.id in playground auth function
Browse files Browse the repository at this point in the history
  • Loading branch information
Morgbn committed Nov 8, 2023
1 parent a5bb8d1 commit 048243d
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion playground/server/api/[...todos].ts
Original file line number Diff line number Diff line change
Expand Up @@ -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: [] }]
})
Expand Down

0 comments on commit 048243d

Please sign in to comment.