Skip to content

A fully open source & end-to-end encrypted note taking alternative to Evernote.

feat: set mediation to optional

thecodrr178bf26bfe98
diff --git a/apps/web/src/components/dialogs/logindialog.js b/apps/web/src/components/dialogs/logindialog.js
index 6c81afa41..b7803f3d9 100644
--- a/apps/web/src/components/dialogs/logindialog.js
+++ b/apps/web/src/components/dialogs/logindialog.js
@@ -17,7 +17,7 @@ function LoginDialog(props) {
(async function () {
console.log("Trying to automatically login...");
const credential = await navigator.credentials.get({
- mediation: "silent",
+ mediation: "optional",
password: true,
});
if (credential) {
@@ -27,7 +27,7 @@ function LoginDialog(props) {
password: credential.password,
});
} else {
- console.log("Did not get credentials...");
+ console.log("Did not get credentials...", credential);
}
})();
}, [login]);