void OnMainActivityComplete(NativeActivityContext context, ActivityInstance completedInstance) { if (AuthentificationTokenIn.Get(context) == null) { authAgent.StopServer(); } }