Open aaonhub opened 3 years ago
Can confirm. This same thing is happening to me, the only difference is that I am not using the Long Running Refresh Tokens
I feel like this a pretty major bug. Is nobody else having this problem?
@aaonhub I'm having the same problem, did you already solve the problem?
It looks like the method used to delete cookies simply ignores the samesite setting.
After a quick test the following change works:
def delete_cookie(response, key):
kwargs = {
"path": jwt_settings.JWT_COOKIE_PATH,
"domain": jwt_settings.JWT_COOKIE_DOMAIN,
}
if django.VERSION >= (2, 1):
kwargs["samesite"] = jwt_settings.JWT_COOKIE_SAMESITE
response.delete_cookie(key, **kwargs)
sorry if there's some standard I'm not following it's my first github issue submission
I don't know why but getting the token works fine but trying to delete it ignores the samesite setting.
My django settings (I tried commenting out the samesite setting but nothing changed):
My apollo client HttpLink:
Token mutation
Deleting token mutation