Skip to content

Commit

Permalink
feat: experiment with forceRefresh to use in impersonation
Browse files Browse the repository at this point in the history
  • Loading branch information
porcellus committed Dec 17, 2024
1 parent 8c139ec commit 45a4eab
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 0 deletions.
2 changes: 2 additions & 0 deletions lib/build/oauth2providerprebuiltui.js

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

Original file line number Diff line number Diff line change
Expand Up @@ -51,9 +51,11 @@ export const TryRefreshPage: React.FC<Prop> = (props) => {
React.useEffect(() => {
if (sessionContext.loading === false) {
(async function () {
console.log("forceRefresh", forceRefresh);
if (forceRefresh) {
await attemptRefreshingSession();
}
console.log("loginChallenge", loginChallenge);
if (loginChallenge) {
const { frontendRedirectTo } = await props.recipe.webJSRecipe.getRedirectURLToContinueOAuthFlow({
loginChallenge,
Expand Down

0 comments on commit 45a4eab

Please sign in to comment.