# Auth0 Login Issue - Local vs. Production

**URL:** <https://community.auth0.com/t/auth0-login-issue-local-vs-production/129233>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [March 8, 2024, 8:14am UTC](https://community.auth0.com/t/auth0-login-issue-local-vs-production/129233 "2024-03-08T08:14:53Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![amit12](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/amit12/32/55474_2.png) [@amit12](https://community.auth0.com/u/amit12)\
**Post date:** [March 8, 2024, 8:14am UTC](https://community.auth0.com/t/auth0-login-issue-local-vs-production/129233/1 "2024-03-08T08:14:53Z")

</div>

I am currently facing an issue with Auth0 login integration in my Nuxt.js application, and I would appreciate any insights or guidance you might have to offer.

Description of the Issue:

In my local development environment, the Auth0 login process is functioning as intended. I have specified the callback URL as localhost:3000/signing-in. Upon successful login through either Google or Microsoft accounts, the application correctly redirects to the dashboard via the signing-in page.

However, when the same code and logic are deployed to the production server ([https://portal.mydomain.com](https://portal.mydomain.com)), the Auth0 login behaves differently. After logging in through Google or Microsoft accounts, the application remains on the login page and does not redirect to the dashboard. Notably, I have set the callback URL to [https://portal.mydomain.com/signing-in](https://portal.mydomain.com/signing-in) for the production environment.

Observations:

In the local environment, the auth.strategy correctly shows “auth0” after Auth0 login.  
However, in the production environment, the auth.strategy continues to display “local” even after Auth0 login.  
Request for Assistance:

I am seeking your expertise to understand the potential reasons behind this disparity in behavior between the local and production environments. What could be causing the Auth0 login to fail on the production server, and why is the auth.strategy not reflecting “auth0” as expected?

Additional Information:

Nuxt Auth module version: 2.0

I appreciate any assistance you can provide in troubleshooting and resolving this issue. Thank you for your time and expertise.

---

<div class="post-metadata">

**Author:** ![dawid.matuszczyk](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dawid.matuszczyk/32/74550_2.png) [@dawid.matuszczyk](https://community.auth0.com/u/dawid.matuszczyk)\
**Post date:** [March 29, 2024, 12:15am UTC](https://community.auth0.com/t/auth0-login-issue-local-vs-production/129233/2 "2024-03-29T00:15:04Z")

</div>

Hi @amit12

Welcome to the Auth0 Community!

Thank you for posting your question. I’ve checked your tenant settings, and you are using Developer Keys for both Google and Microsoft social connections, which are unsuitable for production environments. You can see the whole Limitation of developer keys with Universal Login here → [Test Social Connections with Auth0 Developer Keys](https://auth0.com/docs/authenticate/identity-providers/social-identity-providers/devkeys#limitations-of-developer-keys-when-using-universal-login).

You need to properly register your application with the relevant identity provider to obtain a Client ID and Client Secret, which are necessary to setup a social connection.

I hope this will help you!

Thanks  
Dawid

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 12, 2024, 12:15am UTC](https://community.auth0.com/t/auth0-login-issue-local-vs-production/129233/3 "2024-04-12T00:15:20Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
