Disable email login
If I only want Google signup, is there a way to remove the email login? I tried commenting
But it generated plenty of errors.
5 Replies
Hi @Ricardo Batista. I'm kapa.ai, your friendly support bot. I will try to answer your question by searching through the knowledge base. :wave:
----------------------
Based on the provided knowledge sources, there isn't a direct way to disable email login in Wasp. However, there is a discussion on a Github issue about making the generated login and signup pages optional or flexible. The proposed options include providing a boolean property in the
auth
declaration to turn off automatic generation of auth pages or generating pages and actions and letting the user use the pages if they want by declaring a route to them in the .wasp
file. This feature might not be available yet, but it's worth keeping an eye on the issue for updates.
If you're getting errors after commenting out the email
block, it's likely because other parts of your application are still expecting it to be there. You might need to remove or modify these parts as well.
For now, if you want to use only Google signup, you can focus on the google
block in your auth
configuration and make sure it's correctly set up. Here's an example of how to do it:
Remember to implement the imported function as well:
Please refer to the Wasp documentation (https://wasp-lang.dev/docs/auth/social-auth/overview#2-overriding-the-default-behavior) for more details.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Ricardo Batista, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?@kapa.ai but that doesn't stop the email auth from showing up. How can I remove it?
Let me check the knowledge base for you. One moment! :books:
----------------------
I'm sorry for the confusion, but based on the provided knowledge sources, there isn't a direct way to remove or disable the email authentication method in Wasp. The Wasp framework currently doesn't provide an out-of-the-box way to disable specific authentication methods once they've been enabled.
The knowledge sources do not provide a solution to your specific problem. I would recommend reaching out to the Wasp community or checking the Wasp documentation (https://wasp-lang.dev/docs) for further assistance.
----------------------
Note: you can ask me a follow up question by @ mentioning me again :speech_balloon:
----------------------
Sorry @Ricardo Batista, I seem to be having a bit of trouble. Don't worry though, I've pinged my support and they will try to fix me up! :technologist:
Perhaps try again in 15mins?
The bot is mistaken 🙂 as soon as you comment out the
email
method it should be gone! What kind of errors do you get?
Maybe you need to delete some email related files and imports e.g. somewhere in the app you used something email specific which no longer existsTrue indeed. By commenting there are 5-6 imports that need to be removed, I removed the files altogether. Thanks @miho !