update sso

This commit is contained in:
2021-07-30 17:52:08 +05:30
parent 43234bade1
commit 35ca021424
10 changed files with 14 additions and 18 deletions

View File

@ -25,7 +25,6 @@ const TheContent = () => {
async function fetchSession() {
// You can await here
const result = await axios('https://fsbsso.sumasen.net/Shibboleth.sso/Session');
console.log(result.data);
setSsoSession(result.data);
}
@ -34,9 +33,6 @@ const TheContent = () => {
const shib = cookies.get('_shibsession_64656661756c7468747470733a2f2f66736273736f2e73756d6173656e2e6e65742f73686962626f6c657468')
if(shib !== undefined) {
fetchSession().then(() => {
//console.log(shib);
//console.log(SsoSession);
//console.log(SsoSession.includes('Session Expiration'));
if(SsoSession.includes('Session Expiration')){
return true;
}