stack
stack copied to clipboard
Manually added users cannot sign in with google when sign-up is disabled.
Steps to reproduce:
- Set up a new Stack Auth project on the dashboard(https://app.stack-auth.com/)
- Create a simple Next.js project, and install Stack Auth SDK.
- In the Stack Auth Testing project, I go to Auth Methods, scroll down and disable the Sign-Up.
- I scroll up, and enable the Google Sign-in SSO Provider, using the Stack Auth shared keys.
- I go to Users → Create User
- For the user creation, I specifically used a gmail account I already own, and am signed into. ****@gmail.com
- I set the user to verified, set a display name, and leave OTP/magic link sign-in, and Password sign-in turned off.
- 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.