mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-27 14:54:55 +00:00
Adding catch to refreshAdminToken. (#1631)
This commit is contained in:
parent
a996a1a8b8
commit
0c67e2a834
@ -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
|
||||
|
@ -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);
|
||||
});
|
||||
}
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user