DEV Community

Discussion on: Python: Using JWT in cookies with a flask app and restful API!

 
totally_chase profile image
Phantz

Make sure you unset_access_cookies() before assigning new ones. Also make sure you're not "calling" the method by name (i.e refresh()). You need to redirect() to the refresh url instead

Thread Thread
 
kr profile image
KRains

Yes, I did so. But I have a feeling that I just can't set cookies on a protected route because @jwt_required decorator can't find any cookies YET and kick me out. I'm totally confused now :(