https://supertokens.com/ logo
cookies in postman
p

Pogant

03/14/2023, 10:18 AM
Hello guys! I'm trying to test protected endpoints using postman. Sign in request works well, I get status Ok and user data, but..no cookies are updated in the Postman itself..So my next request to the API gets "message": "unauthorised". Is there any setting that I need to set to allow cookies? Or should I downgrade to a specific version of Postman? (Postman for Mac Version 10.11.2)
r

rp

03/14/2023, 12:21 PM
hey! when calling the sign in API, set the
st-auth-mode
header in postman to
cookie
p

Pogant

03/14/2023, 3:46 PM
Thank you @rp it worked! My bad, I've missed it in the documentation: https://supertokens.com/docs/emailpassword/testing/testing-with-postman