fix: add challenge

This commit is contained in:
joel authored and Joel Lee committed 2024-10-21 19:38:40 +02:00
1 parent 5aea281025
commit 52337d1998
1 file changed
+21
+21
View File
@@ -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