我尝试在CognitoController单例类中实现所有CognitoSignUp/Confirm/SignInStuff。我认为我的问题可能基于两个函数:第一个函数是重新建立session并从我的主视图Controller调用,它接收回调然后继续初始化session或显示signInViewController:funchandleSignInToExistingSession(){ifAWSIdentityManager.default().identityId!=nil{ifAWSFacebookSignInProvider.sharedInstance().token().r