π End-to-end encrypted cloud for everything.
Dart 2faandroidauthye2eeencryptionend-to-end-encryptionfluttergolanggoogle-photosgoogle-photos-alternativeiosopensourcephotosprivacyprivacy-toolstypescriptzero-knowledge
Tweak
Manav Rathi8f77318e88b2
diff --git a/web/docs/webauthn-passkeys.md b/web/docs/webauthn-passkeys.mdindex ea0a98c191..1c4e368bf2 100644--- a/web/docs/webauthn-passkeys.md+++ b/web/docs/webauthn-passkeys.md@@ -25,11 +25,13 @@ As of Feb 2024, Ente clients have a button to navigate to a WebView of EnteAccounts. Ente Accounts allows users to add and manage their registeredpasskeys.-β Your WebView MUST invoke the operating-system's default browser, or an-equivalent browser with matching API parity. Otherwise, the user will not be-able to register or use registered WebAuthn credentials.+> [!NOTE]+>+> Your WebView MUST invoke the operating-system's default browser, or an+> equivalent browser with matching API parity. Otherwise, the user will not be+> able to register or use registered WebAuthn credentials.-### Accounts-Specific Session Token+### Ente Accounts specific session tokenWhen a user clicks this button, the client sends a request for anAccounts-specific JWT session token as shown below. **The Ente Accounts API is@@ -50,15 +52,16 @@ used.** This restriction is a byproduct of the enablement for automatic login.| ------------- | ------ | ----------------------------------------------------------------- || accountsToken | string | The Accounts-specific JWT session token. It is encoded in base64. |-### Automatically logging into Accounts+### Automatically logging into Ente AccountsClients open a WebView with the URL`https://accounts.ente.io/passkeys/handoff?client=<clientPackageName>&token=<accountsToken>`.This page will parse the token and client package name for usage in subsequentAccounts-related API calls.-If valid, the user will be automatically redirected to the passkeys management-page. Otherwise, they will be required to login with their Ente credentials.+If the token is valid, the user will be automatically redirected to the passkeys+management page. Otherwise, they will be required to login with their Ente+credentials.## Registering a WebAuthn credentialdiff --git a/web/packages/accounts/services/passkey.ts b/web/packages/accounts/services/passkey.tsindex ebca047ac3..790f30b7db 100644--- a/web/packages/accounts/services/passkey.ts+++ b/web/packages/accounts/services/passkey.ts@@ -121,8 +121,7 @@ const configurePasskeyRecovery = async (/*** Fetch an Ente Accounts specific JWT token.*- * Fetch a (JWT) token that can be used to authenticate with accounts.ente.io- * (or its equivalent).+ * This token can be used to authenticate with the Ente accounts app.*/const getAccountsToken = async () => {const token = getToken();