Save custom value in cookie or session removes _identity cookie


I trying to create JWT auth. At this moment creating refresh token in cookies.

This removes _identity cookie and showing error always when submit any form with POST method:
Unable to verify your data submission. Bad request 400.

I have checked. All my forms automaticly have hidden csrf input field and in meta tag inside html header.

When I remove code with custom cookie, all works fine.

What i doing wrong?

can you show the code that does the “custom cookie thing”?

Hard to tell without seeing what you are doing :wink: