Translation system is still fucked up
This commit is contained in:
1 parent
c80eac9d5b
commit
42c5a3e665
1 file changed
+1
-1
@@ -27,7 +27,7 @@ async function login(loginUrl, username, password) {
|
|||||||
);
|
);
|
||||||
const status = authResponse[0];
|
const status = authResponse[0];
|
||||||
const data = JSON.parse(authResponse[2]);
|
const data = JSON.parse(authResponse[2]);
|
||||||
const token = data.result.token;
|
const {token} = data.result;
|
||||||
try {
|
try {
|
||||||
if (status === 200) {
|
if (status === 200) {
|
||||||
cache.put(tokenCacheKey, token); // expiration -5 minutes
|
cache.put(tokenCacheKey, token); // expiration -5 minutes
|
||||||
|
|||||||
Reference in new issue
Block a user