Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 2 additions & 0 deletions custom-login/src/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,8 @@ const Home = () => {
} else {
oktaAuth.getUser().then((info) => {
setUserInfo(info);
}).catch((err) => {
console.error(err);
});
}
}, [authState, oktaAuth]); // Update if authState changes
Expand Down
2 changes: 2 additions & 0 deletions custom-login/src/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const Profile = () => {
} else {
oktaAuth.getUser().then((info) => {
setUserInfo(info);
}).catch((err) => {
console.error(err);
});
}
}, [authState, oktaAuth]); // Update if authState changes
Expand Down
2 changes: 2 additions & 0 deletions okta-hosted-login/src/Home.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const Home = () => {
} else {
oktaAuth.getUser().then((info) => {
setUserInfo(info);
}).catch((err) => {
console.error(err);
});
}
}, [authState, oktaAuth]); // Update if authState changes
Expand Down
2 changes: 2 additions & 0 deletions okta-hosted-login/src/Profile.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,8 @@ const Profile = () => {
} else {
oktaAuth.getUser().then((info) => {
setUserInfo(info);
}).catch((err) => {
console.error(err);
});
}
}, [authState, oktaAuth]); // Update if authState changes
Expand Down