Support Topics Documentation Slack YouTube Blog

isValidLogin returns true yet getCurrentUser returns null

On app restart, isValidLogin returns true and getCurrentUser returns null. I pass through stayLoggedIn when logging in so why is the current user null?

Is this for JS, Android, iOS, .NET or Flutter?

Figured it out. It was laid right in front of me in the docs. A weird way of handling the issue in flutter. getCurrentUser should be updated to the currently logged in user on app launch rather than having to query the Users table to get the user.