TRPC clerk middleware error in middleware.ts
Following along with the t3 stack tutorial and getting an error
in the terminal even though i have defiend the withClerkMiddleware function inside my middleware.ts
12 Replies
this is how my files look like if that matters
Change your middleware matcher to
@James Perkins still drops the same error
also one weird interaction i found out is if i move the middleware.ts from pages to the src folder
it starts infinitely rerendering
the page
Is your clock correct 🙂
Its 4 mins late... lol thanks for pointing that out
Sounds like your clock is skewed further than our clock allows.
Fix your clock restart the server and try again.
alright
why does the clock affect this tho by the way
because JWT have an expiration date. so we try to issue you another but i's already expired
according to your system clock.
So your JWT is never valid.
it worked!!! thank you so much
would've never figured this out myself
have a great day! 😄