简体   繁体   English

重新获取苹果凭据(Apple 使用 Expo 登录)

[英]Refetch apple credentials (Apple Sign in using Expo)

I read in the expo documentation that the email and name of the user will only be provided the first time the user signs into the app and in subsequent requests will return null .我在expo 文档中读到 email 和用户名只会在用户第一次登录应用程序时提供,并且在后续请求中将返回null However, I wasnt able to store the user credential the first time I signed in. How can I get the credential values again?但是,我第一次登录时无法存储用户凭据。如何再次获取凭据值?

I tried uninstalling and reinstalling Expo but the values returned to me were still null .我尝试卸载并重新安装 Expo 但返回给我的值仍然是null

We are not able to get the user details if we signed in before using the apple account until we are not removing the account access from apple settings.如果我们在使用苹果账户之前登录,我们将无法获取用户详细信息,直到我们没有从苹果设置中删除账户访问权限。

So at the first time when we signing the user using an apple account, we have to store the user details somewhere like the backend or firebase database so we can get it back whenever we want.因此,当我们第一次使用苹果帐户为用户签名时,我们必须将用户详细信息存储在后端或 firebase 数据库之类的地方,以便我们可以随时取回。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM