var errorMap = {
	"already_enrolled": "You've already connected that school to your MyHomeworkSpace account.",
	"already_verified": "You've already verified your email.",
	"bad_totp_code": "The two factor authentication code you entered is incorrect.",
	"bb_no_grade": "We couldn't find what grade you're in. If you're a faculty member, this is a known issue that we're working to fix. If you're a student, please contact us with the Feedback button at the top-right.",
	"bb_signin_error": "There was an error signing you in. Are you sure the password is correct?",
	"bb_signin_rate_limit": "We're sorry, but schedule importing is currently unavailable. Try again in 30 minutes.",
	"creds_incorrect": "The username or password was incorrect.",
	"disconnected": "You're disconnected from the Internet. Try that again once you've reconnected.",
	"email_exists": "There's already a MyHomeworkSpace account with that email address.",
	"internal_server_error": "An internal server error occurred while processing the request.",
	"insecure_password": "The password you picked isn't secure enough. Please try again.",
	"invalid_params": "Some parameters of the request were invalid.",
	"logged_out": "Your session has timed out. Please reload the page and try that again.",
	"missing_params": "Required parameters were missing from the request.",
	"no_account": "There's no MyHomeworkSpace account with that email address.",
	"password_incorrect": "The password was incorrect.",
	"user_record_missing": "Your user ID record is missing from the database. Please contact hello@myhomework.space for assistance.",
};

export default {
	getFriendlyString: function(key) {
		if (errorMap[key]) {
			return errorMap[key];
		}
		return "An unknown error (" + key + ") occurred.";
	}
};
var errorMap = {
	"already_enrolled": "You've already connected that school to your MyHomeworkSpace account.",
	"already_verified": "You've already verified your email.",
	"bad_totp_code": "The two factor authentication code you entered is incorrect.",
	"bb_no_grade": "We couldn't find what grade you're in. If you're a faculty member, this is a known issue that we're working to fix. If you're a student, please contact us with the Feedback button at the top-right.",
	"bb_signin_error": "There was an error signing you in. Are you sure the password is correct?",
	"bb_signin_rate_limit": "We're sorry, but schedule importing is currently unavailable. Try again in 30 minutes.",
	"creds_incorrect": "The username or password was incorrect.",
	"disconnected": "You're disconnected from the Internet. Try that again once you've reconnected.",
	"email_exists": "There's already a MyHomeworkSpace account with that email address.",
	"internal_server_error": "An internal server error occurred while processing the request.",
	"insecure_password": "The password you picked isn't secure enough. Please try again.",
	"invalid_params": "Some parameters of the request were invalid.",
	"logged_out": "Your session has timed out. Please reload the page and try that again.",
	"missing_params": "Required parameters were missing from the request.",
	"no_account": "There's no MyHomeworkSpace account with that email address.",
	"password_incorrect": "The password was incorrect.",
	"user_record_missing": "Your user ID record is missing from the database. Please contact hello@myhomework.space for assistance.",
	"csrfToken_invalid": "There's something wrong with your session ID. Try clearing your cookies, and if that doesn't fix it, contact us at hello@myhomework.space for assistance."
};

export default {
	getFriendlyString: function(key) {
		if (errorMap[key]) {
			return errorMap[key];
		}
		return "An unknown error (" + key + ") occurred.";
	}
};
add csrfToken_invalid to list of errors