#refresh_token is required in either the JSON payload or Cookie
10 messages · Page 1 of 1 (latest)
This is a custom wrapper function i made
this is the actual function
I am getting refresh_token is required in either the JSON payload or Cookie
At the risk of stating the obvious 😬 as the error says your wrapper is not properly passing the refresh token
Aaah i think i see it
if (additionalHeaders) // will always be true for the defualt {}
// overwrites params.headers with an empty object
params.headers = additionalHeaders
That worked thanks!
Was it the missing of content-type header that caused it?