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(adapter-nextjs): surface redirect error and sign-in timeout error #14116

Merged
merged 3 commits into from
Jan 10, 2025

Conversation

HuiSF
Copy link
Member

@HuiSF HuiSF commented Jan 7, 2025

Description of changes

  1. surface redirect_uri errors (appended by Amazon Cognito) by appending error details as query parameters to redirectOnSignOutComplete
  2. surface sign-in flow timeout error by appending error details as query parameters to redirectOnSignOutComplete
    a. adjusted the timeout from 10 mins to 5 mins to align with Amazon Cognito Hosted UI behavior (see inline documentation link)

Issue #, if available

Description of how you validated changes

  • unit tests

Checklist

  • PR description included
  • yarn test passes
  • Unit Tests are changed or added
  • Relevant documentation is changed or added (and PR referenced)

Checklist for repo maintainers

  • Verify E2E tests for existing workflows are working as expected or add E2E tests for newly added workflows
  • New source file paths included in this PR have been added to CODEOWNERS, if appropriate

By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.

@HuiSF HuiSF force-pushed the feat/server-auth/main branch from 778c2b6 to 07c5d70 Compare January 9, 2025 21:32
@HuiSF HuiSF requested a review from a team as a code owner January 9, 2025 21:32
@HuiSF HuiSF force-pushed the feat/server-auth/main branch from 07c5d70 to 778c2b6 Compare January 9, 2025 22:35
@HuiSF HuiSF force-pushed the hui/feat/server-auth/error-handling branch from 95a6929 to 91a0248 Compare January 10, 2025 17:19
Copy link
Member

@jjarvisp jjarvisp left a comment

Choose a reason for hiding this comment

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

Looks good to me!

@HuiSF HuiSF merged commit 3f2f826 into feat/server-auth/main Jan 10, 2025
28 checks passed
@HuiSF HuiSF deleted the hui/feat/server-auth/error-handling branch January 10, 2025 22:27
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants