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)"
}
}
Was this page helpful?