【发布时间】:2020-05-03 19:29:22
【问题描述】:
【问题讨论】:
标签: javascript reactjs amazon-web-services authentication aws-amplify
【问题讨论】:
标签: javascript reactjs amazon-web-services authentication aws-amplify
我搜索了很多并花了一些时间找到这个答案,所以我将它发布在这里以帮助更多用户:
要退出默认按钮(由amplify add auth 上的默认配置生成),您需要在 withAuthenticator HOC 上传递此道具:
export default withAuthenticator(App, { includeGreetings: true });
要了解有关withAuthenticator HOC 的更多信息,请查看这个超级hidden docs here
【讨论】: