Vibe Coding

This lesson is part of Vibe Coding.

Unlock this course →Already bought it? Log in

Email OTP login — the simplest auth that works

4:04

I've built Google, Apple and Microsoft login. Email OTP is still the simplest thing that works. A second Apps Script for sending mail, the 100-emails-a-day Gmail limit, and why a Workspace account lifts that to thousands.

Transcript preview

I remember one more thing, if you don't want to pay that five dollar fee, what I actually did, I think you are going to pay that. So we need a login also. How are you going to track users? So we need a login to be implemented. And the way it will work is we will have email OTP login. So guys, even though it's been five years, I have built every other kind of login system, Google login, Apple login, even Microsoft and such. The simplest one is the email OTP login. Now I don't want you to have one more expense for email providers, so I'm actually going to show you how you can implement that using Apps Script again. I need Apps Script, which will be used to send email from my email. We will be sending OTP. I will create new script.new. Can you give me code for it? I will deploy it and give it to you. Where the extension works, it should require users to enter their email ID. Now, Cloud is mentioning a very required limit, which is 100 emails per day. If you're using a Gmail account, you'll be able to only send that much. Now the good part is you can actually use a G Suite account, and with G Suite, you can send up to thousands of emails per day. And thousands of people logging in in a single day, if you're literally having that much suffering from success, then you'll figure it out, brother. You can let me know. A thousand people per day is a very huge amount.

The full lesson — video and transcript — is part of Vibe Coding.

Get Vibe Coding