Need to patch flask_login, it has an error on line 136. Fork or find alternative to use json in cookies