Merge branch 'main' into static
This commit is contained in:
commit
c30d0c0996
@ -21,9 +21,13 @@ export const signInAction = async (
|
||||
`${error}`.includes(KEY_CREDENTIALS_SIGN_IN_ERROR) ||
|
||||
`${error}`.includes(KEY_CREDENTIALS_SIGN_IN_ERROR_URL)
|
||||
) {
|
||||
// Rethrow credentials error to display on the sign in page.
|
||||
// Return credentials error to display on sign-in page.
|
||||
return KEY_CREDENTIALS_SIGN_IN_ERROR;
|
||||
} else if (!`${error}`.includes('NEXT_REDIRECT')) {
|
||||
console.log('Unknown sign in error:', {
|
||||
errorText: `${error}`,
|
||||
error,
|
||||
});
|
||||
// Rethrow non-redirect errors
|
||||
throw error;
|
||||
}
|
||||
|
||||
Loading…
Reference in New Issue
Block a user