Commit b5def27d authored by femiadeyemi's avatar femiadeyemi
Browse files

use bracket notation to access the json object

parent ff664913
Pipeline #60669 failed with stages
in 2 minutes and 4 seconds
......@@ -20,7 +20,7 @@
return response.json();
}).then(credential => {
sessionStorage.setItem("auth_status", "authenticated");
sessionStorage.setItem("access_token", credential.access_token);
sessionStorage.setItem("access_token", credential["access_token"]);
triggerEvent();
}).catch(e => {
console.log(e);
......@@ -29,4 +29,4 @@
}
triggerEvent();
})
})()
\ No newline at end of file
})()
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment