t
tRPC
t
tRPC
How do I call trpc routes to nextjs middleware?
Original message was deleted
tRPC
Join
Move Fast & Break Nothing. End-to-end typesafe APIs made easy.
5,111
Members
View on Discord
T
three13
I need to check if user is authenticated and based on that handle redirection.
I
isitayush
•
2/14/23, 8:48 PM
A simple solution to this is cookies
, return them to your signin
/login page if those cookies are not present
. After login
, store the token inside a cookie
. Another solution is a Local storage but it
's not very safe
.
:
)