update sso
This commit is contained in:
@ -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;
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user