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) ||
|
||||||
`${error}`.includes(KEY_CREDENTIALS_SIGN_IN_ERROR_URL)
|
`${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;
|
return KEY_CREDENTIALS_SIGN_IN_ERROR;
|
||||||
} else if (!`${error}`.includes('NEXT_REDIRECT')) {
|
} else if (!`${error}`.includes('NEXT_REDIRECT')) {
|
||||||
|
console.log('Unknown sign in error:', {
|
||||||
|
errorText: `${error}`,
|
||||||
|
error,
|
||||||
|
});
|
||||||
// Rethrow non-redirect errors
|
// Rethrow non-redirect errors
|
||||||
throw error;
|
throw error;
|
||||||
}
|
}
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user