Skip to content

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

fix: session was being validated synchronously

thecodrr142ec35bfe69
diff --git a/packages/core/api/index.js b/packages/core/api/index.js
index 56ed6c154..e91969007 100644
--- a/packages/core/api/index.js
+++ b/packages/core/api/index.js
@@ -47,7 +47,7 @@ class Database {
EV.subscribe("db:write", this._onDBWrite.bind(this));
this.session = new Session(this.context);
- this._validate();
+ await this._validate();
this.user = new User(this);
this.syncer = new Sync(this);