Skip to content

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

Merged
merged 6 commits into from
Feb 23, 2023
Merged

fix(site): Fix login flow #6294

merged 6 commits into from
Feb 23, 2023

Conversation

BrunoQuaresma
Copy link
Collaborator

Fix #6224

login-demo-720.mov

@BrunoQuaresma BrunoQuaresma requested a review from a team February 21, 2023 16:47
@BrunoQuaresma BrunoQuaresma self-assigned this Feb 21, 2023
@BrunoQuaresma BrunoQuaresma requested review from code-asher and removed request for a team February 21, 2023 16:47
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

This replaces only the first occurrence of "*".
<div className={styles.error}>
<AlertBanner severity="error" error={error} />
</div>
</Maybe>
Copy link
Member

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.")
Copy link
Member

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.

Copy link
Member

@Kira-Pilot Kira-Pilot left a 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!

@BrunoQuaresma BrunoQuaresma enabled auto-merge (squash) February 23, 2023 00:28
@BrunoQuaresma BrunoQuaresma merged commit 8298a92 into main Feb 23, 2023
@BrunoQuaresma BrunoQuaresma deleted the bq/fix-login branch February 23, 2023 15:25
@github-actions github-actions bot locked and limited conversation to collaborators Feb 23, 2023
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

bug: incorrect login attempt via built-in auth takes user back to login screen
2 participants