stack icon indicating copy to clipboard operation
stack copied to clipboard

Manually added users cannot sign in with google when sign-up is disabled.

Open Stack-Auth-Bot opened this issue 6 months ago • 0 comments

Steps to reproduce:

  1. Set up a new Stack Auth project on the dashboard(https://app.stack-auth.com/)
  2. Create a simple Next.js project, and install Stack Auth SDK.
  3. In the Stack Auth Testing project, I go to Auth Methods, scroll down and disable the Sign-Up.
  4. I scroll up, and enable the Google Sign-in SSO Provider, using the Stack Auth shared keys.
  5. I go to Users → Create User
  6. For the user creation, I specifically used a gmail account I already own, and am signed into. ****@gmail.com
  7. I set the user to verified, set a display name, and leave OTP/magic link sign-in, and Password sign-in turned off.
  8. On the basic Next.js project, I attempted to sign-in with google, I was given the error:
An error occurred

Error Code: SIGN_UP_NOT_ENABLED

Error Message: Creation of new accounts is not enabled for this project. Please ask the project owner to enable it.

Stack-Auth-Bot avatar Jul 10 '25 07:07 Stack-Auth-Bot