如何在 Amplify auth 默认配置上隐藏注销按钮?
How to hide sign out button on Amplify auth default configuration?
如何隐藏放大默认配置的注销按钮?
我正在使用此配置来应用 Amplify Auth:
export default withAuthenticator(App, true);
这个按钮:
我搜索了很多,花了一些时间才找到这个答案,所以我会 post 在这里帮助更多用户:
要退出默认按钮(由 amplify add auth
上的默认配置生成),您需要将此道具传递给 withAuthenticator HOC:
export default withAuthenticator(App, { includeGreetings: true });
要查看有关 withAuthenticator
HOC 的更多信息,请查看此超级 hidden docs here
如何隐藏放大默认配置的注销按钮?
我正在使用此配置来应用 Amplify Auth:
export default withAuthenticator(App, true);
这个按钮:
我搜索了很多,花了一些时间才找到这个答案,所以我会 post 在这里帮助更多用户:
要退出默认按钮(由 amplify add auth
上的默认配置生成),您需要将此道具传递给 withAuthenticator HOC:
export default withAuthenticator(App, { includeGreetings: true });
要查看有关 withAuthenticator
HOC 的更多信息,请查看此超级 hidden docs here