mirror of
https://github.com/supabase/supabase.git
synced 2026-10-17 15:19:08 +03:00
fix: add challenge
This commit is contained in:
1 parent
5aea281025
commit
52337d1998
1 file changed
+21
@@ -2312,6 +2312,27 @@ functions:
|
||||
{
|
||||
data: {
|
||||
id: '<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: '<ID>',
|
||||
type: 'webauthn',
|
||||
expires_at: 1700000000
|
||||
},
|
||||
error: null
|
||||
|
||||
Reference in new issue
Block a user