Skip to content

Commit

Permalink
Catch 401 error in oktaAuth.getUser
Browse files Browse the repository at this point in the history
OKTA-421505
<<<Jenkins Check-In of Tested SHA: 97f0d23 for [email protected]>>>
Artifact: okta-react
Files changed count: 6
PR Link: "#164"
  • Loading branch information
denys.oblohin authored and eng-prod-CI-bot-okta committed Sep 13, 2021
1 parent 41aa11f commit ba34c77
Show file tree
Hide file tree
Showing 6 changed files with 12 additions and 0 deletions.
2 changes: 2 additions & 0 deletions generated/samples/custom-login/src/Home.jsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions generated/samples/custom-login/src/Profile.jsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions generated/samples/okta-hosted-login/src/Home.jsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions generated/samples/okta-hosted-login/src/Profile.jsx

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions generator/_templates/samples/github-sample/src/Home.jsx.t
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,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 generator/_templates/samples/github-sample/src/Profile.jsx.t
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,8 @@ const Profile = () => {
} else {
oktaAuth.getUser().then((info) => {
setUserInfo(info);
}).catch((err) => {
console.error(err);
});
}
}, [authState, oktaAuth]); // Update if authState changes
Expand Down

0 comments on commit ba34c77

Please sign in to comment.