© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago•
10 replies
HighImKevin

Error 535 from signInWithOtp

I'm not sure what I've done wrong because I was able to sign in earlier today. Now I get an Error 500 message, and when inspecting the supabase logs I see:

  "error": "Error sending confirmation email: 535 Authentication Credentials Invalid",
  "level": "error",
  "method": "POST",
  "msg": "500: Error sending confirmation mail",
  "path": "/otp",
  "error": "Error sending confirmation email: 535 Authentication Credentials Invalid",
  "level": "error",
  "method": "POST",
  "msg": "500: Error sending confirmation mail",
  "path": "/otp",


I've double checked the API key and URL and they are both correct in the headers. Let me know if anyone can help, thanks!

Simple login:
const handleLogin = async () => {
        try {
            const {error} = await supabaseClient.auth.signInWithOtp({ email });
            if (error) throw error
            alert('Check your email for a magic link to login!');
        } catch (error) {
            console.log(error);

        }
    }
const handleLogin = async () => {
        try {
            const {error} = await supabaseClient.auth.signInWithOtp({ email });
            if (error) throw error
            alert('Check your email for a magic link to login!');
        } catch (error) {
            console.log(error);

        }
    }
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

signinwithotp
SupabaseSSupabase / help-and-questions
3y ago
signInWithOtp returns weak password error
SupabaseSSupabase / help-and-questions
3y ago
Is signInWithOtp() broken?
SupabaseSSupabase / help-and-questions
2mo ago
Setting signInWithOtp Site URL?
SupabaseSSupabase / help-and-questions
4y ago