Merged in feat/sw-2526-update-sas-error-handling-after-api-changes (pull request #1886)

SW-2526 - Update error handling for link SAS account

* Update error handling for link SAS account

* Capture schema validation error and send to Sentry

* Add cases for unhandled otp errors


Approved-by: Joakim Jäderberg
This commit is contained in:
Anton Gunnarsson
2025-05-12 11:48:31 +00:00
parent 6d1f9cbb28
commit 94a00d40b7
3 changed files with 51 additions and 3 deletions

View File

@@ -190,7 +190,12 @@ async function handleLinkAccount({
url: `/${lang}/sas-x-scandic/error?errorCode=dateOfBirthMismatch`,
type: "replace",
}
// Currently unhandled errors
case "accountToNew":
case "nameNotMatched":
case "blockedForRelink":
case "error":
default:
return {
url: `/${lang}/sas-x-scandic/error`,
type: "replace",