Skip to content

Commit

Permalink
Uses the correct status code enum when dealing with networking errors…
Browse files Browse the repository at this point in the history
… in auth()
  • Loading branch information
bakatz committed Sep 22, 2023
1 parent 05d8e51 commit bc5738f
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -137,7 +137,7 @@ export class SimpleOTP {
if (errorHTTPResponseData) {
return new SiteAuthResponse(errorHTTPResponseData.code, errorHTTPResponseData.message, errorHTTPResponseData.data)
} else {
return new SiteAuthResponse(SignInStatusCode.NetworkingError.description, NETWORKING_ERROR_MESSAGE, null)
return new SiteAuthResponse(AuthStatusCode.NetworkingError.description, NETWORKING_ERROR_MESSAGE, null)
}
}

Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@simpleotp/core",
"version": "1.1.0",
"version": "1.1.1",
"description": "",
"main": "index.js",
"scripts": {
Expand Down

0 comments on commit bc5738f

Please sign in to comment.