Next.js Discord

Discord Forum

How to create auth in tRPC ??

Answered
Siamese Crocodile posted this in #help-forum
Open in Discord
Siamese CrocodileOP
Do you have any resource of how can i do auth in tRPC ?
Answered by @ts-ignore
If I am not wrong, trpc has nothing to do with authentication
View full answer

18 Replies

If I am not wrong, trpc has nothing to do with authentication
Answer
trpc just provides you with types of the request and response
Siamese CrocodileOP
@@ts-ignore well...if i want to do auth how can i do it ?
Siamese CrocodileOP
ok, i thought is smt more specific to trpc about this
like here
I've never really worked with Trpc but going through this seems like it adds the user info to the request who is making this request
this is after authentication
as said, Authorization
Siamese CrocodileOP
hm...ok
so...create a table for use, new route, create user / log in, in create absics logic, in log in, sbsic logic only i have that token i need to deal
and that is
kinda
?
@@ts-ignore
yeah ig
Siamese CrocodileOP
danke für die Hilfe