feat: made identity crud with identity auth mode and api key for user me

This commit is contained in:
Akhil Mohan
2024-02-20 21:08:34 +05:30
parent 43879f6813
commit 8d06a6c969
2 changed files with 4 additions and 4 deletions
+1 -1
View File
@@ -197,7 +197,7 @@ export const registerUserRouter = async (server: FastifyZodProvider) => {
})
}
},
onRequest: verifyAuth([AuthMode.JWT]),
onRequest: verifyAuth([AuthMode.JWT, AuthMode.API_KEY]),
handler: async (req) => {
const user = await server.services.user.getMe(req.permission.id);
return { user };