Translation system is still fucked up

This commit is contained in:
Benoit 2022-12-05 22:34:34 +01:00
parent c80eac9d5b
commit 42c5a3e665

View file

@ -27,7 +27,7 @@ async function login(loginUrl, username, password) {
);
const status = authResponse[0];
const data = JSON.parse(authResponse[2]);
const token = data.result.token;
const {token} = data.result;
try {
if (status === 200) {
cache.put(tokenCacheKey, token); // expiration -5 minutes