Export login state from lib to UI via callback