You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
While building a custom sign in page as described in https://authjs.dev/guides/pages/signin, I would like to use the same signinErrors map to show error message based on the built-in errors, this simplifies the handling of different built-in errors.
The current workaround is to copy the same definition to the user code.
Proposal
Export the map signinErrors, however it might require to move the constant to a different file which I am not sure.
Yeah I can contribute with some guidance from the dev team.
reacted with thumbs up emoji reacted with thumbs down emoji reacted with laugh emoji reacted with hooray emoji reacted with confused emoji reacted with heart emoji reacted with rocket emoji reacted with eyes emoji
-
Goals
Export signinErrors from https://github.com/nextauthjs/next-auth/blob/00b16ae28e926ed05df09baf2f44919dd3b8977e/packages/core/src/lib/pages/signin.tsx#L8C7-L8C19
Non-Goals
No response
Background
While building a custom sign in page as described in https://authjs.dev/guides/pages/signin, I would like to use the same
signinErrors
map to show error message based on the built-in errors, this simplifies the handling of different built-in errors.The current workaround is to copy the same definition to the user code.
Proposal
Export the map
signinErrors
, however it might require to move the constant to a different file which I am not sure.Yeah I can contribute with some guidance from the dev team.
Beta Was this translation helpful? Give feedback.
All reactions