The auth layer is the foundation for every product area that requires user accounts. If auth is enabled, then login, signup, dashboard, settings, and several protected routes all depend on this configuration. Auth is only truly considered active when the auth toggle is on and the Supabase public env is present.
What this feature includes
Auth in KilatKoding includes:- login with email and password,
- signup,
- Google OAuth,
- Magic Link,
- email verification,
- forgot password,
- update password,
/auth/confirmcallback,- auth error handling.
Related routes and flows
This auth flow depends on Supabase Auth, so the main routes here are pages and callbacks. The core login, signup, and verification mutations are handled through the Supabase integration rather than separate public API routes in this repository.
Dependencies and setup
How auth fallback works
- The server resolves auth status from the auth toggle plus the real Supabase public env values that are available.
- Auth pages then pass that resolved config down into the client forms.
- If the config is incomplete, the auth pages show a Supabase configuration notice instead of forcing a broken browser-client initialization.
What teams usually customize
- login and signup page copy,
- which auth providers are shown,
- post-login redirect behavior,
- post-signup flow,
- product terminology inside auth pages,
- public CTA paths that point to login.
When auth is disabled
Auth can appear inactive either because the toggle is intentionally off, or because the Supabase public env is incomplete. Auth is usually turned off when:- the product is only launching as a waitlist,
- there is no gated user area yet,
- you want to validate demand before maintaining user accounts.
- login CTA,
- dashboard CTA,
- member-area navigation,
- marketing copy that promises an account or dashboard.
Verification checklist
- Login works.
- Signup works.
- Email verification behaves correctly.
- Forgot password and update password work.
- Supabase redirect URLs match the environment.
- Public CTA paths do not expose auth routes when auth is disabled.
- If the Supabase public env is incomplete, the auth pages show a clear configuration notice.