https://supertokens.com/ logo
Title
g

ggishant

10/12/2022, 11:19 AM
Hi, I'm getting a 401 : Unauthorized message while calling the refresh and sign out api's. Here are the cookies being set in the request.
The url:
r

rp

10/12/2022, 11:19 AM
are you passing the rid header?
g

ggishant

10/12/2022, 11:20 AM
no actually, not using the sdk for react native. will do that
what's rid though? @rp
r

rp

10/12/2022, 11:22 AM
it's a custom header we need for csrf protection
set the value of the header to
"session"
g

ggishant

10/12/2022, 11:23 AM
cool thanks, the path for refresh token cookies is being set to /auth/session/refresh and I'm getting this when calling the signout api
r

rp

10/12/2022, 11:24 AM
enable backend debug logs and show me the output
g

ggishant

10/12/2022, 11:24 AM
sure