Closed rohitdotmittal closed 9 years ago
When the user's token expires, you need them to authenticate again, so you can get a new token. Just catch the ResourceRequestNotFound, look for "invalid session", and prompt the user for their password again.
This isn't something ParsePy can do for you, since the users password isn't stored anywhere. You'll need to prompt for it every time the session expires.
I should've mentioned that it happens while Parse session tokens are still valid. It was a flask issue. Flask wasn't storing session tokens. Thanks for the input though!
The user logs and may perform a few requests but after some time they end up with ResourceRequestNotFound: {"code":101,"error":"invalid session"} I guess this is because the user is logged out or sessionToken is lost. I'm using flask for this.