Add webauthn to auth.php and add index for credentialKeys

This commit is contained in:
Bradley Schofield
2024-06-18 14:58:00 +09:00
parent a676b98823
commit 0add8ba5ff
2 changed files with 15 additions and 1 deletions
+7
View File
@@ -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,
]
];
+8 -1
View File
@@ -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],
],
],
],