added async

This commit is contained in:
Mohamed Nouffer
2023-08-02 19:28:40 +05:30
parent 00d24ca84f
commit e1a97c2b39
10 changed files with 16 additions and 16 deletions

View File

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