// OAuthSignin: Error in constructing an authorization URL (1, 2, 3),
// OAuthCallback: Error in handling the response (1, 2, 3) from an OAuth provider.
// OAuthCreateAccount: Could not create OAuth provider user in the database.
// EmailCreateAccount: Could not create email provider user in the database.
// Callback: Error in the OAuth callback handler route
// OAuthAccountNotLinked: If the email on the account is already linked, but not with this OAuth account
// EmailSignin: Sending the e-mail with the verification token failed
// CredentialsSignin: The authorize callback returned null in the Credentials provider. We don't recommend providing information about which part of the credentials were wrong, as it might be abused by malicious hackers.
// SessionRequired: The content of this page requires you to be signed in at all times. See useSession for configuration.
// Default: Catch all, will apply, if none of the above matched
switch(error){
case'OAuthSignin':
case'OAuthCallback':
case'OAuthCreateAccount':
case'EmailCreateAccount':
case'Callback':
return'Try signing in with a different account.';
case'OAuthAccountNotLinked':
return'To confirm your identity, sign in with the same account you used originally.';
case'EmailSignin':
return'The e-mail could not be sent.';
case'CredentialsSignin':
return'Sign in failed. Check the details you provided are correct.';