added async2

This commit is contained in:
Mohamed Nouffer
2023-08-02 19:34:27 +05:30
parent e1a97c2b39
commit 0069e3cef8

View File

@ -113,7 +113,7 @@ const TheContent = () => {
async function get_token_from_storage_or_cookie() { async function get_token_from_storage_or_cookie() {
const cookies = new Cookies(); const cookies = new Cookies();
const shib = await cookies.get('_shibsession_64656661756c7468747470733a2f2f66627373736f2e62697a736964652e62697a2f73686962626f6c657468') const shib = await cookies.get('_shibsession_64656661756c7468747470733a2f2f66627373736f2e62697a736964652e62697a2f73686962626f6c657468');
console.log(shib); console.log(shib);
if (shib !== undefined) { if (shib !== undefined) {
fetchSession().then(() => { fetchSession().then(() => {