Skip to content

Commit

Permalink
Add webauthn to auth.php and add index for credentialKeys
Browse files Browse the repository at this point in the history
  • Loading branch information
PineappleIOnic committed Jun 18, 2024
1 parent a676b98 commit 0add8ba
Show file tree
Hide file tree
Showing 2 changed files with 15 additions and 1 deletion.
7 changes: 7 additions & 0 deletions app/config/auth.php
Original file line number Diff line number Diff line change
Expand Up @@ -52,4 +52,11 @@
'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,
]
];
9 changes: 8 additions & 1 deletion app/config/collections.php
Original file line number Diff line number Diff line change
Expand Up @@ -691,7 +691,14 @@
'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],
],
],
],

Expand Down

0 comments on commit 0add8ba

Please sign in to comment.