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 45a4eab commit d75931b
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 4 deletions.
4 changes: 2 additions & 2 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,11 +51,10 @@ export const TryRefreshPage: React.FC<Prop> = (props) => {
React.useEffect(() => {
if (sessionContext.loading === false) {
(async function () {
console.log("forceRefresh", forceRefresh);
document.cookie = "st-last-access-token-update=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
if (forceRefresh) {
await attemptRefreshingSession();
}
console.log("loginChallenge", loginChallenge);
if (loginChallenge) {
const { frontendRedirectTo } = await props.recipe.webJSRecipe.getRedirectURLToContinueOAuthFlow({
loginChallenge,
Expand Down

0 comments on commit d75931b

Please sign in to comment.