如何在 Amplify AWS 中添加 Google、Apple 等社交提供商登录“withAuthenticator”?

问题描述 投票:0回答:1

我查过官方文档,但没有明确提到如何添加 Google、Apple 等社交提供商登录

withAuthenticator

我还应用了自定义 UI 更改并遵循文档,以便我可以看到 UI 中的更改。

根据文档

如果您想向 UI 组件添加自定义样式,您可以使用上面的说明将自定义主题对象作为参数传递给 withAuthenticator HOC:

export default withAuthenticator(App, false, [], null, MyTheme);

现在,我还需要添加社交提供商,例如 Google、Apple 登录。但我在文档中找不到我该怎么做?

javascript amazon-web-services react-native authentication aws-amplify
1个回答
0
投票

withAuthenticator 功能没有变化

通过身份提供商(Google、Amazon 等)的登录体验更新 Cognito 用户池

使用您在用户池中启用的相同提供程序更新您的项目文件 auth/resource.tsx 并定义回调 URL 和注销 URL

你完成了

© www.soinside.com 2019 - 2024. All rights reserved.