Skip to content

Commit

Permalink
Fix readme example (#62)
Browse files Browse the repository at this point in the history
Remove undefined `resolve` function from example
  • Loading branch information
abereghici authored Jul 25, 2023
1 parent 36a06aa commit 6b10df5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -146,7 +146,7 @@ const axiosInstance = axios.create({ baseURL: BASE_URL })
const requestRefresh = (refresh) => {
// Notice that this is the global axios instance, not the axiosInstance! <-- important
return axios.post(`${BASE_URL}/auth/refresh_token`, { refresh })
.then(response => resolve(response.data.access_token))
.then(response => response.data.access_token)
};

// 3. Apply interceptor
Expand Down

0 comments on commit 6b10df5

Please sign in to comment.