update sso

This commit is contained in:
2021-07-30 17:36:45 +05:30
parent e3e4abdbf3
commit d1e09d3dc8
10 changed files with 16 additions and 15 deletions

View File

@ -34,6 +34,7 @@ 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);
}
@ -44,7 +45,7 @@ const TheContent = () => {
fetchSession();
console.log(shib);
console.log(SsoSession);
console.log(SsoSession.includes('Session Summary'));
console.log(SsoSession.includes('Session Expiration'));
if(SsoSession.includes('Session Expiration')){
return true;
}