I built a web app using Auth0 as well as Node, React, Express, MongoDB.
Then I wanted to create a new web app with the same basic bones as the first app, so I duplicated the original files and made the necessary changes. This worked fine except that: When I press the login button on the new app it still takes me to the login for the old app.
I’ve setup a new application within the Auth0 control panel and I’ve copied the new Client ID to auth0-variables.js file. I’ve also updated environment variables with Heroku (where I’m testing authentication at the moment).
When I run:
heroku config:get AUTH0_CLIENT_ID
I get the Client ID that matches the new project, but when I open the web app and click Login, I’m still taken to a sign in page with the title of the old app, and then redirected to the old app’s callback.
It seems my app is still getting a value somewhere that tells it to connect to the old app, but I’ve combed through all the files again and again and I just can’t seem to find where it’s finding any reference at all to the old app.
I feel like I’m missing something obvious but I’ve been beating my head against the wall for several days and haven’t come up with anything.
Any idea what I’m missing?