Skip to content

juraj98/trpc-clerk-mre

Repository files navigation

To reproduce the TRPC issue, just open the app. Inside terminal you'll see that the server request fails. Upon refresh, the data loads client side, but server request fails again.

To reproduce Clerk's auth() function returning empty AuthObject:

  1. Comment out if (!isPublicRoute(req)) auth().protect(); line in middleware.ts
  2. Add console.log(ctx.auth) to the fist line of isAuthorized function in trpc/api/trpc.ts.

About

No description, website, or topics provided.

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published