diff --git a/supabase_auth/_async/gotrue_client.py b/supabase_auth/_async/gotrue_client.py index b46ab230..00ea1d23 100644 --- a/supabase_auth/_async/gotrue_client.py +++ b/supabase_auth/_async/gotrue_client.py @@ -442,7 +442,7 @@ async def sign_in_with_otp( phone = credentials.get("phone") options = credentials.get("options", {}) email_redirect_to = options.get("email_redirect_to") - should_create_user = options.get("create_user", True) + should_create_user = options.get("should_create_user", True) data = options.get("data") channel = options.get("channel", "sms") captcha_token = options.get("captcha_token") diff --git a/supabase_auth/_sync/gotrue_client.py b/supabase_auth/_sync/gotrue_client.py index 131fbcf5..ace93194 100644 --- a/supabase_auth/_sync/gotrue_client.py +++ b/supabase_auth/_sync/gotrue_client.py @@ -436,7 +436,7 @@ def sign_in_with_otp( phone = credentials.get("phone") options = credentials.get("options", {}) email_redirect_to = options.get("email_redirect_to") - should_create_user = options.get("create_user", True) + should_create_user = options.get("should_create_user", True) data = options.get("data") channel = options.get("channel", "sms") captcha_token = options.get("captcha_token")