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鈥檒l occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: added types for sign in errors #3740

Merged
merged 4 commits into from
Feb 2, 2022
Merged

Conversation

norbitrial
Copy link
Contributor

Reasoning 馃挕

This PR is intended to add typing for <SigninPage /> component's error property as the following:

Screenshot 2022-01-25 at 21 53 02

After this change it will accept only the giving string values. Originally it accepted any string value.

Checklist 馃Б

  • Documentation
  • Tests
  • Ready to be merged

Affected issues 馃師

Fixes #3665

@github-actions github-actions bot added the core Refers to `@auth/core` label Jan 25, 2022
Copy link
Member

@balazsorban44 balazsorban44 left a comment

Choose a reason for hiding this comment

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

Thanks! Could we re-export this from next-auth?

Could you do the same for the error page as well?

error?: string

https://next-auth.js.org/configuration/pages#error-page

src/core/pages/signin.tsx Show resolved Hide resolved
@balazsorban44 balazsorban44 merged commit 53baf6d into nextauthjs:main Feb 2, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
core Refers to `@auth/core`
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Type the error message
2 participants