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 d75931b commit f7abdb2
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion 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,7 +51,7 @@ export const TryRefreshPage: React.FC<Prop> = (props) => {
React.useEffect(() => {
if (sessionContext.loading === false) {
(async function () {
document.cookie = "st-last-access-token-update=;expires=Thu, 01 Jan 1970 00:00:00 GMT";
document.cookie = "st-last-access-token-update=; path=/; expires=Thu, 01 Jan 1970 00:00:00 GMT";
if (forceRefresh) {
await attemptRefreshingSession();
}
Expand Down

0 comments on commit f7abdb2

Please sign in to comment.