Why isn't the Flask-Login current_user.is_authenticated consistent?
I have an Angular app that is making API calls to the backend Flask app. The Flask app is using Flask-Login to authenticate users when they login. When the user logs in with the login() function I defined, current_user.is_authenticated returns True. When I call another function called get_is_logged_in(), current_user.is_authenticated returns False. My User class inherits from UserMixin, so it has all of the required properties and methods as explained in the documentation (https://flask-login.readthedocs.io/en/latest/#your-user-class). In the login() function, after calling login_user(), I che
0 upvotes
View original discussion ↗
Comments
Sign in or sign up to comment and upvote.
No comments yet.