-
Notifications
You must be signed in to change notification settings - Fork 899
fix(site): Fix login flow #6294
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
Conversation
const redirect_uri = encodeURIComponent(`${protocol}//${host}/login`) | ||
// The path doesn't matter but we use /api because the dev server | ||
// proxies /api to the backend. | ||
const uri = `${protocol}//${appHost.host.replace( |
Check failure
Code scanning / CodeQL
Incomplete string escaping or encoding
<div className={styles.error}> | ||
<AlertBanner severity="error" error={error} /> | ||
</div> | ||
</Maybe> |
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.
👍 good simplification
} | ||
|
||
return permissions | ||
throw new Error("User is not authenticated.") |
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.
A lot of these hooks look very similar. Perhaps down the road (not in this PR) we could consolidate them into 1 hook that takes an arg.
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.
Great cleanup and appreciate the video!
Fix #6224
login-demo-720.mov