update report no date check session

This commit is contained in:
Mohamed Nouffer
2021-09-03 14:40:45 +05:30
parent cea83f6cdf
commit b93bdc461b
9 changed files with 15 additions and 15 deletions

View File

@ -29,9 +29,9 @@ const TheContent = () => {
async function fetchSession() {
// You can await here
//setSsoSession('{ "expiration": 468, "client_address": "111.223.144.163", "protocol": "urn:oasis:names:tc:SAML:2.0:protocol", "identity_provider": "https://sso.ts.bizside.biz/idp/shibboleth", "authn_instant": "2021-09-03T08:26:41.248Z", "authncontext_class": "urn:oasis:names:tc:SAML:2.0:ac:classes:PasswordProtectedTransport", "attributes": [ { "name": "mail", "values": [ "akira.miyata@mobilous.com" ] } ] }')
const result = await axios('https://fsbsso.sumasen.net/Shibboleth.sso/Session');
if(JSON.stringify(SsoSession) !== JSON.stringify(result.data)) {
console.log(SsoSession);
setSsoSession(result.data);
}
}