How does WorkOS AuthKit tell a staging environment from a production one?

I’m trying to run WorkOS AuthKit on my production server, but AuthKit won’t bring up the sign-in page. It complains I’m using the wrong client id for the environment. Does anyone know how to convince AuthKit it’s running on my production server?
2 Replies
DocxDiablo
DocxDiablo3mo ago
maybe check the url's you've set in your WorkOs dashboard and/or in your environment file. Do you see any errors in the console or networking tab?
Alfonso Guerra
Alfonso GuerraOP3mo ago
Of course. That's how I saw it report I’m using the wrong client id for the environment. When I redeployed the server with the settings from my local machine, it works as expected. IOW, now I can't use that WorkOS project for local development anymore because it's tied up by my production server. I have to create a new project to do local development if I can't convince WorkOS to treat my Vercel app as my production server.

Did you find this page helpful?