From 12223d0af7425eb67d5faba02be73203cf4425eb Mon Sep 17 00:00:00 2001 From: Joel Lee Date: Wed, 20 Dec 2023 10:33:25 +0800 Subject: [PATCH] feat: add friendly name to spec (#18977) * feat: add friendly name to spec * fix: move friendly name to proper location * feat: reinstate the mfa page --------- Co-authored-by: joel@joellee.org --- spec/supabase_js_v2.yml | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/spec/supabase_js_v2.yml b/spec/supabase_js_v2.yml index 958c86ef739..9f762cf9215 100644 --- a/spec/supabase_js_v2.yml +++ b/spec/supabase_js_v2.yml @@ -866,13 +866,14 @@ functions: code: | ```js const { data, error } = await supabase.auth.mfa.enroll({ - factorType: 'totp' + factorType: 'totp', + friendlyName: 'your_friendly_name' }) // Use the id to create a challenge. // The challenge can be verified by entering the code generated from the authenticator app. // The code will be generated upon scanning the qr_code or entering the secret into the authenticator app. - const { id, type, totp: { qr_code, secret, uri } } = data + const { id, type, totp: { qr_code, secret, uri }, friendly_name } = data ``` - id: mfa-challenge title: 'mfa.challenge()'