code100x / job-board

100xdevs job board
https://staging.placements.100xdevs.com/
242 stars 369 forks source link

🐛 Bug Report: Google Auth Error #426

Open CuriousCoder00 opened 1 day ago

CuriousCoder00 commented 1 day ago

📜 Description

It leads to the Localhost url when using google providers to login or signup It might be an issue with .env in production

GOOGLE_CLIENT_ID= GOOGLE_CLIENT_SECRET= or at the time of generating these credentials on the google console Authorized redirect URIs wasn't redirected to the production url

👟 Reproduction steps

  1. Go to Login or signup page https://staging.placements.100xdevs.com/signup or https://staging.placements.100xdevs.com/signup
  2. try signing in with google
  3. It redirectes you to http://localhost:3000/api/auth/error?error=OAuthCallback

👍 Expected behavior

It should not redirecte you to http://localhost:3000/api/auth/error?error=OAuthCallback

👎 Actual Behavior with Screenshots

It redirectes you to http://localhost:3000/api/auth/error?error=OAuthCallback on production

OS name

Windows

browser name

Chrome

npm version

10

node version

20

📃 Provide any additional context for the Bug.

No response

👀 Have you spent some time to check if this bug has been raised before?

🏢 Have you read the Contributing Guidelines?

Are you willing to submit PR?

None

VanshikaSabharwal commented 11 hours ago

Hey @CuriousCoder00 If we are adding google auth then i can easily implement. #413 issue.

VanshikaSabharwal commented 10 hours ago

Ohh i got it , auth is just for job poster.

CuriousCoder00 commented 10 hours ago

Yeah @VanshikaSabharwal