Fix Google Sign-In for SaaS

Job ID: 39628567

Budget: $30 – $250 USD

Subject: Seeking Expert to Troubleshoot Google OAuth & User Profile Issues in Production on Replit
I'm looking for an experienced developer to help diagnose and resolve a critical issue with Google Sign-in on my SaaS application, InvoiceIQ, which is built and deployed on Replit.

The core problem is a discrepancy between the development and production environments. In Replit's development environment, the Google OAuth 2.0 flow works perfectly. Test users can sign in, their profile information (like their email) is visible on the dashboard, and they can access their profile settings and the sign-out option.

However, these features are failing in the live production version at invoiceiq.app. While the initial Google sign-in appears to complete and redirects to the dashboard, the user's profile information is not displayed. This suggests that the user session is not being properly established or the user data is not being correctly fetched and displayed post-authentication in the production environment. This also leads me to believe that user accounts are not being successfully created in our database upon their first sign-in.

Key Issues
Production Sign-In Failure: The Google OAuth 2.0 sign-in flow is not fully functional in the production environment.

Missing User Profiles: User profile details (e.g., email, profile icon) are not visible on the dashboard after a user signs in on the production site.

Account Creation Errors: It appears that user accounts are not being successfully created in our database when a new user signs in for the first time in production.

What I Need
I need a freelancer with expertise in the following areas to help me troubleshoot and fix these issues:

Google OAuth 2.0: Deep understanding of the OAuth flow, including scopes, tokens, and callbacks.

Web Application Authentication: Proven experience in debugging and resolving authentication problems in a live environment.

Replit Deployment: Familiarity with the nuances of deploying applications on Replit, especially the differences between its development and production environments.

Google Developer Console: Experience managing OAuth credentials, including authorized JavaScript origins and redirect URIs, for both testing and production.