Is publicProcedure safe to use with this kind of approach ?
Stack : t3stack (next 14, drizzle, pnpm)
I want to expose some of my procedure with rest api for an intern old software and I want to use an API KEY approach to secure it.
I have this user.ts procedure that return info of my user based on id, and this authorization.ts procedure that check if the key is valid (it's the user id for now to make some tests).
Does making the user procedure public make it vulnerable if it's used like the user/[id]/route.ts file ?
Is there a better way to authenticate user (use the auth cookie to make requests ?)
Thanks ! (:
0 Replies