Hi, I get the following response when I try callin...
# support-questions-legacy
a
Hi, I get the following response when I try calling the session refresh api.
Copy code
json
{
  "message": "unauthorized"
}
This is the curl request. Cookie isn't present in the curl but is attached in the real request.
Copy code
bash
curl --location --request POST 'http://localhost/auth/session/refresh' \
--header 'rid: session' \
--header 'fdi-version: 1.8,1.9,1.10,1.11,1.12,1.13,1.14'
r
Hey. You need to also send the refresh token along with the request.
a
sRefreshToken
right?
r
Yes.
a
why is the cookie path
Path=/auth/session/refresh
for `sRefreshToken`and not
/
for others?
is there a way to modify it?
r
Cause the refresh token should be sent only for the refresh api. Better security.
No way to modify that. Nor should you need to.
a
okay. I had to modify it in postman since postman was not attaching it for the endpoint and hence the unauthorized message.
Thanks for the help. I am now able to refresh it.
7 Views