diff --git a/CHANGELOG.md b/CHANGELOG.md index f9ba225e..6ed7970f 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -7,6 +7,7 @@ X.Y.Z Release notes * None. ### Bug fixes +* [Object Server] Fixed a bug where errors in `refreshAdminToken` wasn't catched (#1627). * [Object Server] Added `_getExitingUser` to the Chrome debugging support library. ### Internal diff --git a/lib/user-methods.js b/lib/user-methods.js index 825bde90..9634ef37 100644 --- a/lib/user-methods.js +++ b/lib/user-methods.js @@ -117,6 +117,9 @@ function refreshAdminToken(user, localRealmPath, realmUrl) { parsedRealmUrl.set('pathname', json.path); session._refreshAccessToken(user.token, parsedRealmUrl.href, json.syncLabel); } + }) + .catch((e) => { + print_error(e); }); }