This got answered in another post that i'm calling account api methods which are not compatible. I'm using flutter/ dart SDK to get current logged in user by calling account.get()
or calling final user = users.get(userId: session.userId);
but this doesn't work. I have all scopes enabled.