-
Notifications
You must be signed in to change notification settings - Fork 23
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
PORTALS-3299: proposed solution for oauth sign in app when prompt is … #1328
Conversation
setTimeout(() => { | ||
window.location.assign(href) | ||
}, 10) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
why setTimeout
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Because I mistakenly thought that cookies.set() was an async operation so I wanted to queue this redirect! I will remove the setTimeout
Co-authored-by: Nick Grosenbacher <[email protected]>
Co-authored-by: Nick Grosenbacher <[email protected]>
cookies.set(ACCOUNT_SITE_PROMPTED_FOR_LOGIN_COOKIE_KEY, 'true', { | ||
path: '/', | ||
expires: expireDate, | ||
domain: hostname.endsWith('.synapse.org') ? 'synapse.org' : undefined, |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This may not work on dev (which is OK for now, since we don't have a dev OAuth app or accounts site)
…set to login