Skip to content

Commit

Permalink
"version": "0.8.3-dev": fixed issue
Browse files Browse the repository at this point in the history
  • Loading branch information
behzodfaiziev committed Dec 1, 2024
1 parent 247b0cc commit 7ba0ddc
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 9 deletions.
2 changes: 1 addition & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Changelog

## [0.8.2-dev]
## [0.8.3-dev]

- added `isTokenRefreshRequired` method to check if the token refresh is required before sending a
request
Expand Down
4 changes: 2 additions & 2 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "next-netkit",
"version": "0.8.2-dev",
"version": "0.8.3-dev",
"description": "Network manager",
"main": "dist/cjs/index.js",
"module": "dist/esm/index.js",
Expand Down
6 changes: 1 addition & 5 deletions src/network-manager.ts
Original file line number Diff line number Diff line change
Expand Up @@ -195,11 +195,7 @@ class NetworkManager implements INetworkManager {
// Trigger token refresh if the path is set
if (this.refreshTokenPath) {
try {
await this.axiosInstance.post(
`${this.baseOptions.baseURL}/${this.refreshTokenPath}`,
{},
{ withCredentials: true }
);
await this.axiosInstance.post(this.refreshTokenPath, {}, { withCredentials: true });
} catch (error: any) {
throw ApiException.fromJson(error.response.data, this.errorParams, error.response.status);
}
Expand Down

0 comments on commit 7ba0ddc

Please sign in to comment.