diff options
author | crupest <crupest@outlook.com> | 2021-02-13 11:58:36 +0800 |
---|---|---|
committer | crupest <crupest@outlook.com> | 2021-02-13 11:58:36 +0800 |
commit | 303f66d90472716191ae71377b3e83e1537089aa (patch) | |
tree | 24eb173e0f45b01e622820351957c2981f752468 /FrontEnd/src/app/http/token.ts | |
parent | c3d0a5f88de0fbdf6bc584548832017087ab1248 (diff) | |
download | timeline-303f66d90472716191ae71377b3e83e1537089aa.tar.gz timeline-303f66d90472716191ae71377b3e83e1537089aa.tar.bz2 timeline-303f66d90472716191ae71377b3e83e1537089aa.zip |
...
Diffstat (limited to 'FrontEnd/src/app/http/token.ts')
-rw-r--r-- | FrontEnd/src/app/http/token.ts | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/FrontEnd/src/app/http/token.ts b/FrontEnd/src/app/http/token.ts index c0644515..f8b09d63 100644 --- a/FrontEnd/src/app/http/token.ts +++ b/FrontEnd/src/app/http/token.ts @@ -4,7 +4,6 @@ import axios, { AxiosError } from "axios"; import { apiBaseUrl, - convertToNetworkError, convertToIfErrorCodeIs, extractResponseData, } from "./common"; @@ -47,15 +46,13 @@ export class HttpTokenClient implements IHttpTokenClient { .then(extractResponseData) .catch( convertToIfErrorCodeIs(11010101, HttpCreateTokenBadCredentialError) - ) - .catch(convertToNetworkError); + ); } verify(req: HttpVerifyTokenRequest): Promise<HttpVerifyTokenResponse> { return axios .post<HttpVerifyTokenResponse>(`${apiBaseUrl}/token/verify`, req) - .then(extractResponseData) - .catch(convertToNetworkError); + .then(extractResponseData); } } |