Common Issues
auth
Login or Signup Not Working in My AI App
Users try to log in or create an account but nothing happens, they get an error, or they're stuck in a loop. This is one of the most common issues with AI-generated apps because auth involves multiple moving parts.
Error Messages You Might See
Invalid login credentials
Email not confirmed
User already registered
Failed to fetch
401 Unauthorized
Redirect URI mismatch
Common Causes
- Auth provider (Supabase, Firebase, Auth0) is not properly configured
- Redirect URLs are wrong — the app sends users to the wrong page after login
- Session or token management is broken — users appear logged in but the app doesn't recognize them
- Email confirmation is required but the emails aren't being sent
- Row Level Security (RLS) policies are blocking access to user data
How to Fix It
- Open browser dev tools (F12) and check the Network tab during login — look for failed API calls
- Verify your auth provider's redirect URL matches your actual app URL
- Check if email confirmation is enabled and whether emails are being sent (check spam folder)
- If using Supabase, check RLS policies — they often block legitimate queries
- Make sure your auth provider's API keys are correct in your environment variables
Real developers can help you.
Describe what's wrong in plain English. No technical knowledge needed.
Get HelpFrequently Asked Questions
Users can sign up but can't log in. What's wrong?
Usually an email confirmation issue — check if your auth provider requires email verification. Also verify that the login redirect URL is correct.
Login works on localhost but not in production. Why?
Your auth provider's redirect URLs probably still point to localhost. Update them to your production domain in the auth provider's dashboard.