mirror of
https://github.com/appwrite/appwrite.git
synced 2026-05-26 13:51:13 +00:00
Add webauthn to auth.php and add index for credentialKeys
This commit is contained in:
@@ -52,4 +52,11 @@ return [
|
||||
'docs' => 'https://appwrite.io/docs/references/cloud/client-web/account#accountCreatePhoneToken',
|
||||
'enabled' => true,
|
||||
],
|
||||
'webauthn' => [
|
||||
'name' => 'Webauthn',
|
||||
'key' => 'webauthn',
|
||||
'icon' => '/images/users/webauthn.png',
|
||||
'docs' => 'https://appwrite.io/docs/references/cloud/client-web/account#accountCreateWebAuthnSession',
|
||||
'enabled' => true,
|
||||
]
|
||||
];
|
||||
|
||||
@@ -691,7 +691,14 @@ $commonCollections = [
|
||||
'attributes' => ['userInternalId'],
|
||||
'lengths' => [Database::LENGTH_KEY],
|
||||
'orders' => [Database::ORDER_ASC],
|
||||
]
|
||||
],
|
||||
[
|
||||
'$id' => ID::custom('_key_publicKeyCredentialId'),
|
||||
'type' => Database::INDEX_UNIQUE,
|
||||
'attributes' => ['publicKeyCredentialId'],
|
||||
'lengths' => [Database::LENGTH_KEY],
|
||||
'orders' => [Database::ORDER_ASC],
|
||||
],
|
||||
],
|
||||
],
|
||||
|
||||
|
||||
Reference in New Issue
Block a user