Skip to content

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

web: fix password recovery not working

Abdullah Attade6c8154a30a
diff --git a/apps/web/src/views/recovery.tsx b/apps/web/src/views/recovery.tsx
index da77dd978..62b8b2214 100644
--- a/apps/web/src/views/recovery.tsx
+++ b/apps/web/src/views/recovery.tsx
@@ -130,8 +130,6 @@ function useAuthenticateUser({
async function authenticateUser() {
setIsAuthenticating(true);
try {
- await db.init();
-
const accessToken = await db.tokenManager.getAccessToken();
if (!accessToken) {
await db.tokenManager.getAccessTokenFromAuthorizationCode(