Skip to main content
Mocha includes a built‑in authentication module. Today it supports Google sign‑in via our Mocha provider. You can enable auth simply by asking the AI to add it.
Ask: “Add authentication and a sign‑in button.” The AI will set up sign‑in/out flows and guard protected pages and actions.
No. Mocha’s provider handles the Google OAuth flow. Just ask the AI to enable authentication.
Not yet. Multiple providers and scopes are on our roadmap. For now, Google is supported out of the box.
Email/password and username/password authentication are not directly supported yet. While Mocha can sometimes build custom auth flows, it often makes mistakes with security-critical code. We strongly recommend sticking with Google authentication—it’s a solid, secure mechanism that works reliably. We plan to add native email/password support soon.
Yes, if you’re on a Silver or Gold plan. By default, users see “Mocha” in the Google sign-in screen. With your own credentials, they’ll see your app’s name and logo instead. Learn more in Customize Google Sign In.
I