and would it make sense to check if user is logged in before calling this or at least before doing legacy callback?