© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•4y ago
mattposgate

AuthApiError

I'm struggling with verifyOtp with captchas.
The captchas are working for signin and the verifyOtp works when captchas are disabled.

Here's the line of code:

const authResponse = await supabaseClient.auth.verifyOtp({
email,
token: otp,
type: "recovery",
options: {
captchaToken,
},
});

using @supabase/supabase-js": "^2.0.4" in a 'static' nextjs app

The error returned is as follows:

Failed to load resource: the server responded with a status of 400 ()

The authResponse looks like this:
{
data: {user:null, session:null},
error: {
name: "AuthApiError",
status: 400,
message: "request disallowed",
stack: "AuthApiError: request disallowed at eval (webpack-internal:///../../node_modules/@supabase/gotrue-js/dist/module/lib/fetch.js:47:20)"
}
}
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

ListUsers() : AuthApiError 401 ?
SupabaseSSupabase / help-and-questions
3y ago
How to investigate AuthApiError
SupabaseSSupabase / help-and-questions
4y ago
AuthApiError Internal server error
SupabaseSSupabase / help-and-questions
4y ago
AuthApiError: Error sending recovery email
SupabaseSSupabase / help-and-questions
7mo ago