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 <joel@joellee.org>
This commit is contained in:
Joel Leeandjoel@joellee.org authored and GitHub committed 2023-12-20 10:33:25 +08:00
1 parent 52fbddb5f4
commit 12223d0af7
1 file changed
+3 -2
+3 -2
View File
@@ -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()'