Skip to content

Commit

Permalink
Update GatewayApi.js
Browse files Browse the repository at this point in the history
  • Loading branch information
FPT-NMTung authored May 13, 2024
1 parent 8e7105d commit 9f219d4
Showing 1 changed file with 1 addition and 6 deletions.
7 changes: 1 addition & 6 deletions src/apis/GatewayApi.js
Original file line number Diff line number Diff line change
Expand Up @@ -67,12 +67,7 @@ const showToastError = (errorMessage) => {
}

const callRefreshToken = (onSuccess) => {
const refreshToken = Cookies.get('info');
if (!refreshToken) {
removeToken();
}

const optionFetch = createOptionFetch({refresh_token: refreshToken})
const optionFetch = createOptionFetch({})
fetch(URL_REFRESH_TOKEN, optionFetch)
.then((res) => {
if (res.ok) {
Expand Down

0 comments on commit 9f219d4

Please sign in to comment.