diff --git a/apps/docs/spec/supabase_js_v2.yml b/apps/docs/spec/supabase_js_v2.yml index d14d512cc30..33fe057dfce 100644 --- a/apps/docs/spec/supabase_js_v2.yml +++ b/apps/docs/spec/supabase_js_v2.yml @@ -2312,6 +2312,27 @@ functions: { data: { id: '', + type: 'phone', + expires_at: 1700000000 + }, + error: null + } + ``` + - id: create-mfa-webauthn-challenge + name: Create a challenge for a WebAuthn factor + isSpotlight: false + code: | + ```js + const { data, error } = await supabase.auth.mfa.challenge({ + factorId: '34e770dd-9ff9-416c-87fa-43b31d7ef225', + }) + ``` + response: | + ```json + { + data: { + id: '', + type: 'webauthn', expires_at: 1700000000 }, error: null