felixv
Hono RPC + Clerk Middleware in Next.js Server Actions/Components
I am using the
clerkMiddleware
in Hono and was wondering if this is the correct way to make authenticated
requests with serverComponents
and server Actions
by simply forwarding the cookie value from the next/headers
. Should there any other headers be forwarded?
Here are the steps:
1) Add Hono Middleware
2) Forward Cookie from next/headers
to init of client
:
1 replies