Skip to content
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

feat(passport): Add signout link to all error pages #2654

Merged

Conversation

Cosmin-Parvulescu
Copy link
Contributor

Description

  • Added Sign Out button to Passport ErrorBoundary
  • Added Sign Out button to Passport CatchBoundary
  • Fixed long standing markup bug

Related Issues

Testing

image
image

Checklist

  • I have read the CONTRIBUTING guidelines
  • I have tested my code (manually and/or automated if applicable)
  • I have updated the documentation (if necessary)

@Cosmin-Parvulescu Cosmin-Parvulescu self-assigned this Aug 31, 2023
@Cosmin-Parvulescu Cosmin-Parvulescu added the enhancement Indicates new feature requests label Aug 31, 2023
@Cosmin-Parvulescu Cosmin-Parvulescu marked this pull request as ready for review August 31, 2023 10:23
@Cosmin-Parvulescu Cosmin-Parvulescu force-pushed the feat/passport/add-signout-link-to-all-error-pages branch 2 times, most recently from 2af2d16 to 4392e87 Compare September 4, 2023 08:10
szkl
szkl previously approved these changes Sep 5, 2023
@@ -370,6 +372,12 @@ export function ErrorBoundary({ error }) {
<Links />
</head>
<body className="min-h-[100dvh] flex justify-center items-center">
<section className="absolute right-0 top-0 p-4">
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

When I got to any invalid URL under passport (add /asdf to any valid URL) and click Sign out on the new error page, I get the following:
image

This happens regardless of whether the error originated while signed in or not.

If I sign out with the regular Sign out link under the avatar menu, I don't get this error.

@Cosmin-Parvulescu Cosmin-Parvulescu force-pushed the feat/passport/add-signout-link-to-all-error-pages branch from f362921 to fddea1e Compare September 7, 2023 11:36
@Cosmin-Parvulescu Cosmin-Parvulescu force-pushed the feat/passport/add-signout-link-to-all-error-pages branch from fddea1e to 7d4a12e Compare September 7, 2023 13:34
@betimshahini betimshahini merged commit 75a0fbe into main Sep 7, 2023
14 checks passed
@betimshahini betimshahini deleted the feat/passport/add-signout-link-to-all-error-pages branch September 7, 2023 14:13
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement Indicates new feature requests
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat(passport): Add signout link to all error pages
3 participants