Skip to content

Commit 1f82b24

Browse files
illyaVvengrov
authored andcommitted
fix (ajax for nodejs): pass user-token form local cache if exists (#40)
1 parent 8c04828 commit 1f82b24

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

libs/backendless.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -417,6 +417,8 @@
417417

418418
if (currentUser != null && !!currentUser["user-token"]) {
419419
options.headers["user-token"] = currentUser["user-token"];
420+
} else if (Backendless.LocalCache.exists("user-token")) {
421+
options.headers["user-token"] = Backendless.LocalCache.get("user-token");
420422
}
421423

422424
var buffer;

0 commit comments

Comments
 (0)