Has anyone had issues with the api call to get a refresh token? I am following the format in the docs but it keeps giving me errors when trying to get a new refresh token. Any help would be great!
let sendToken = await fetch(
https://public-api.shiphero.com/auth/refresh`, {
method: “POST”,
headers: {
“refresh_token”: “exampletoken”,
“Content-Type”: “application/json”
}
}).then(response => response.json()).then(data => {
console.log(data)
})
.catch((err) => {
console.log(err)
})`