mirror of
https://github.com/status-im/realm-js.git
synced 2025-01-11 06:46:03 +00:00
Fix unhandled promise rejection warnings when access token refreshing fails
This commit is contained in:
parent
ce749578e1
commit
e75496571f
@ -110,7 +110,8 @@ function refreshAccessToken(user, localRealmPath, realmUrl) {
|
||||
print_error(`Unhandled session token refresh error: could not look up session at path ${localRealmPath}`);
|
||||
}
|
||||
}
|
||||
});
|
||||
})
|
||||
.catch((e) => print_error(e));
|
||||
}
|
||||
|
||||
function _authenticate(userConstructor, server, json, callback) {
|
||||
@ -258,4 +259,4 @@ module.exports = {
|
||||
});
|
||||
},
|
||||
},
|
||||
};
|
||||
};
|
||||
|
Loading…
x
Reference in New Issue
Block a user