In my case the problem was that user wasn't verified. (You can manually change is_verified column in the database or use verify endpoints to achieve the same result)
is_verified