clerk / t3-turbo-and-clerk

A t3 Turbo starter with Clerk as the auth provider.
https://clerk.dev
1.03k stars 75 forks source link

Middleware parsing error and refresh loop #58

Closed matteobad closed 1 year ago

matteobad commented 1 year ago

Describe the bug Hi, I've been working with the T3 turbo template with Clerk in a project and this was a great reference, but there was a small, non-blocking, problem that I opened here: https://github.com/clerkinc/javascript/issues/840 and that was fixed pretty quickly.

Now the error mentioned in the above issue is gone, but every page gets stuck in a loading loop triggered by some clerk script tag in the html (screenshot below). I'm reporting things here because this template gives me the exact same errors.

To Reproduce Steps to reproduce the behavior:

  1. Update @clerk/nextjs to 4.11.0
  2. Go to homepage
  3. Sign In
  4. See the refresh loop

Expected behavior No error in the middleware and no refresh loop

Screenshots The refresh that causes the loop

Schermata 2023-02-24 alle 14 38 20

Desktop (please complete the following information):

Additional context Old issue present in the template: https://github.com/clerkinc/javascript/issues/840 New issue after updating the library: refresh loop

perkinsjr commented 1 year ago

Can you please update to 4.11.0 which was released today. This isn't related to T3-Turbo-and Clerk but clerk itself.

perkinsjr commented 1 year ago

Closing this in favor of the issue you opened in the core javascript lib.

https://github.com/clerkinc/javascript/issues/865