This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
export default function getErrorMessage(error) { | |
switch (error.code) { | |
case "auth/app-deleted": | |
return "App service discontinued"; | |
case "auth/expired-action-code": | |
return "Something went wrong, please try again later"; | |
case "auth/invalid-action-code": | |
return "Something went wrong, please try again later"; | |
case "auth/user-disabled": | |
return "Unauthorized user, please contact developer for more info"; |