# http://localhost:3000/api/auth/error?error=OAuthSignin

**URL:** <https://forum.codewithmosh.com/t/http-localhost-3000-api-auth-error-error-oauthsignin/24220>\
**Category:** Next.js\
**Created:** [December 22, 2023, 11:52am UTC](https://forum.codewithmosh.com/t/http-localhost-3000-api-auth-error-error-oauthsignin/24220 "2023-12-22T11:52:10Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![samwu](https://avatars.discourse-cdn.com/v4/letter/s/54ee81/32.png) [@samwu](https://forum.codewithmosh.com/u/samwu)\
**Post date:** [December 22, 2023, 11:52am UTC](https://forum.codewithmosh.com/t/http-localhost-3000-api-auth-error-error-oauthsignin/24220/1 "2023-12-22T11:52:10Z")

</div>

i run this webapp ([GitHub - mosh-hamedani/issue-tracker](https://github.com/mosh-hamedani/issue-tracker)) in my local, when signin with google, i got a error:  
Try signing in with a different account.

[http://localhost:3000/api/auth/error?error=OAuthSignin](http://localhost:3000/api/auth/error?error=OAuthSignin)

anyone can help?

---

<div class="post-metadata">

**Author:** ![JerryHobby](https://sea2.discourse-cdn.com/flex020/user_avatar/forum.codewithmosh.com/jerryhobby/32/5370_2.png) [@JerryHobby](https://forum.codewithmosh.com/u/JerryHobby)\
**Post date:** [December 23, 2023, 8:50pm UTC](https://forum.codewithmosh.com/t/http-localhost-3000-api-auth-error-error-oauthsignin/24220/2 "2023-12-23T20:50:07Z")

</div>

If you have google setup as in TEST mode, you have to add your authorized google accounts to the list of test accounts. I found this does not always work though.

Switch it to production, it will then allow all google accounts to sign in. In Mosh’s course, he says that is a big deal – but if you are a small project and don’t request a bunch of extra security features, it will go production instantly and no issues. So that’s what I do. I just mark it production and everything works.
