clerk / remix-auth-starter

Add sign up, sign in, profile management, and authenticated API routes to your Remix application with the Remix Auth Starter by Clerk.
https://clerk-remix-starter.vercel.app
MIT License
38 stars 10 forks source link

Getting 401s for a short period of time even though a user is logged in #14

Closed DarrenBaldwin07 closed 10 months ago

DarrenBaldwin07 commented 1 year ago

This might not be the correct place to put this issue so happy to move it if needed.

Ever since I started using Clerk + Remix, I have consistently gotten 401 errors almost every time on a cold login. The typical flow is that I get a 401, it hangs for 1.5 seconds (with a white screen), and then finally shows the user the app. Keep in mind that I am using Remix's V2_errorBoundary and have also implemented everything exactly how it was described in this doc: https://clerk.com/docs/quickstarts/remix (it even mentions "If you are seeing a 401 after a short period of time, even though your user is logged in, please verify you have implemented this section").

franklinjavier commented 1 year ago

image

AdiRishi commented 11 months ago

Ran into this myself, made an issue to track it in the main clerk js repository - https://github.com/clerk/javascript/issues/2166

LekoArts commented 10 months ago

Please see https://github.com/clerk/javascript/issues/2166#issuecomment-1827960060