reavatar
reavatar
Explore posts from servers
CDCloudflare Developers
Created by reavatar on 7/15/2023 in #pages-discussions
Clerk sign out issue with next.js
Thanks you much. I'll try it out with next package release.
10 replies
CDCloudflare Developers
Created by reavatar on 7/15/2023 in #pages-discussions
Clerk sign out issue with next.js
Found out a workaround: Started using router push to point to signin url instead of same url.
10 replies
CDCloudflare Developers
Created by reavatar on 7/15/2023 in #pages-discussions
Clerk sign out issue with next.js
Though in every case, signout does happens. It's just that I have to manually press reload to get back to signin screen.
10 replies
CDCloudflare Developers
Created by reavatar on 7/15/2023 in #pages-discussions
Clerk sign out issue with next.js
couldn't find any workaround or solution for visiting same page after signout
10 replies
CDCloudflare Developers
Created by reavatar on 7/15/2023 in #pages-discussions
Clerk sign out issue with next.js
I found out the problem only occurs when I route back to same page after signout. It works fine when using router.push to a different page after signout
10 replies
CDCloudflare Developers
Created by reavatar on 7/15/2023 in #pages-discussions
Clerk sign out issue with next.js
I have another website (http://chatbrowser.io/) on cloudflare pages where sign in / sign out executes ok in Navigation bar. Even though in logs for signout I see.
Error: Clerk: auth() was called but it looks like you aren't using authMiddleware in your middleware file. Please use authMiddleware and make sure your middleware matcher is configured correctly and it matches this route or page. See https://clerk.com/docs/quickstarts/get-started-with-nextjs
Error: Clerk: auth() was called but it looks like you aren't using authMiddleware in your middleware file. Please use authMiddleware and make sure your middleware matcher is configured correctly and it matches this route or page. See https://clerk.com/docs/quickstarts/get-started-with-nextjs
But on a different page, the only different thing I am doing is using useEffect it gives same above error on signout but I get Error with some digest code on screen, in logs it's same. The same website when deployed on vercel, log "warning" states for both sign in/ sign out but exectues alright.
[GET] [middleware: "middleware"] / status=401
[GET] [middleware: "middleware"] / status=401
So, everything is quite confusing.
10 replies
CDCloudflare Developers
Created by reavatar on 7/15/2023 in #pages-discussions
Clerk sign out issue with next.js
Thanks Github repo: https://github.com/satpalsr/clerktest Deployed on cloudflare pages: https://clerktest.pages.dev/ Deployed on vercel: https://clerktest-one.vercel.app/ If you want to deploy yourself on cloudflare, you need to add these env variables from https://clerk.com/ NEXT_PUBLIC_CLERK_PUBLISHABLE_KEY= CLERK_SECRET_KEY= NODE_VERSION=19.9.0 I have also added nodejs_compat in Settings > Functions > Compatibility flags
10 replies