cleanup code & add tests

This commit is contained in:
Konstantin Schaper
2020-08-20 18:57:58 +02:00
parent 44edb48771
commit 34dc7fdac0
6 changed files with 201 additions and 4 deletions

View File

@@ -103,3 +103,5 @@ export function createBackendError(content: BackendErrorContent, statusCode: num
export function isBackendError(response: Response) {
return response.headers.get("Content-Type") === "application/vnd.scmm-error+json;v=2";
}
export const TOKEN_EXPIRED_ERROR_CODE = "DDS8D8unr1";