From 52337d199825c264b54c7ea9008412a70f781663 Mon Sep 17 00:00:00 2001 From: joel Date: Wed, 18 Sep 2024 16:25:55 +0200 Subject: [PATCH] fix: add challenge --- apps/docs/spec/supabase_js_v2.yml | 21 +++++++++++++++++++++ 1 file changed, 21 insertions(+) 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