added user api

This commit is contained in:
2021-08-17 21:30:23 +05:30
parent b24e405f1c
commit 1c99574b09
10 changed files with 16 additions and 17 deletions

View File

@ -44,7 +44,8 @@ const TheContent = () => {
password: pwd
}
});
setUserData(result);
console.log(result.data);
setUserData(result.data);
}
function get_token_from_storage_or_cookie() {
@ -63,8 +64,6 @@ const TheContent = () => {
const shib = cookies.get('_shibsession_64656661756c7468747470733a2f2f66736273736f2e73756d6173656e2e6e65742f73686962626f6c657468')
if (shib !== undefined) {
fetchSession().then(() => {
console.log('fetch session');
console.log(SsoSession.length);
if (SsoSession !== null) {
fetchUser().then(() => {
console.log('requesting user data');