mirror of
https://github.com/supabase/supabase.git
synced 2026-10-05 17:35:10 +03:00
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:
1 parent
52fbddb5f4
commit
12223d0af7
1 file changed
+3
-2
@@ -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()'
|
||||
|
||||
Reference in new issue
Block a user