Qu-nii-sama
❔ RefreshToken and Cookies
Hi I have a bug i can't quite figure out.
I am trying to persist a refresh token as a cookie on the client.
When developing locally I see the refresh token in the application tab ---> cookies
but when I inspect the same tab in production I can't see the key-value pair for the refresh token.
backend and frontend is both on https
cookieoptions httpflag and secure are set to true.
samesite to none
The http call for login where the refresh token is issued have the withCrendentials set to true.
The Cors is also set to AllowCredentials()
When i login in production environment i see the refreshToken cookie in the response header.
but not in the application tab -> cookies.
but the follow sub request i see the refreshtoken in the request header.
How do i get the refresh token to appear in the application tab -> cookies
The next method is part of login endpoint
And lastly clientside code
I need that refreshToken to appear in the cookies in production
3 replies