app: using state when registering + ensuring there's app info when getting auth url