added user api

This commit is contained in:
2021-08-18 15:50:52 +05:30
parent 1489fc70c5
commit e778c67b0b
8 changed files with 17 additions and 17 deletions

View File

@ -33,10 +33,7 @@ const TheContent = () => {
// You can await here
const result = await axios('https://fsbsso.sumasen.net/Shibboleth.sso/Session');
if(SsoSession !== result.data) {
console.log("same result");
setSsoSession(result.data);
}
setSsoSession(result.data);
}
async function fetchUser() {
@ -63,7 +60,10 @@ const TheContent = () => {
}
});
console.log(result.data);
setUserData(result.data);
if(UserData !== result.data) {
console.log("same result");
setUserData(result.data);
}
}
function get_token_from_storage_or_cookie() {