File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change @@ -135,15 +135,6 @@ export async function NextAuthHandler<
135135 }
136136 return render . verifyRequest ( )
137137 case "error" :
138- if ( pages . error ) {
139- return {
140- redirect : `${ pages . error } ${
141- pages . error . includes ( "?" ) ? "&" : "?"
142- } error=${ error } `,
143- cookies,
144- }
145- }
146-
147138 // These error messages are displayed in line on the sign in page
148139 if (
149140 [
@@ -162,6 +153,15 @@ export async function NextAuthHandler<
162153 return { redirect : `${ options . url } /signin?error=${ error } ` , cookies }
163154 }
164155
156+ if ( pages . error ) {
157+ return {
158+ redirect : `${ pages . error } ${
159+ pages . error . includes ( "?" ) ? "&" : "?"
160+ } error=${ error } `,
161+ cookies,
162+ }
163+ }
164+
165165 return render . error ( { error : error as ErrorType } )
166166 default :
167167 }
Original file line number Diff line number Diff line change @@ -48,7 +48,7 @@ export default function SigninPage(props: SignInServerPageParams) {
4848 Callback : "Try signing in with a different account." ,
4949 OAuthAccountNotLinked :
5050 "To confirm your identity, sign in with the same account you used originally." ,
51- EmailSignin : "Check your email inbox ." ,
51+ EmailSignin : "The e-mail could not be sent ." ,
5252 CredentialsSignin :
5353 "Sign in failed. Check the details you provided are correct." ,
5454 SessionRequired : "Please sign in to access this page." ,
You can’t perform that action at this time.
0 commit comments