Skip to content

The Postgres development platform. Supabase gives you a dedicated Postgres database to build your web, mobile, and AI applications.

feat: add friendly name to spec (#18977)

Joel Lee12223d0af742
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()'