[英]Firebase: How to get email from sign in with apple on real device?
[英]How do I get name and email from Apple sign in?
我正在我的 iOS 应用程序上实现 Apple 登录。 我想在每次登录时检索用户名和 email。 我认为有一种方法可以使用 API。 我正在 Postman 中尝试以下 URL,它总是返回一个网页 - 而不是任何用户数据。 https://appleid.apple.com/auth/authorize?client_id=com.greenrobot.endhunger.service&redirect_uri=https://greenrobot.com/&response_type=id_token%20code
有任何想法吗?
编辑:我按照这里的说明进行操作: https://developer.apple.com/documentation/sign_in_with_apple/sign_in_with_apple_js/incorporating_sign_in_with_apple_into_other_platforms
使用 Sign in with Apple,您只会在首次登录时获得电子邮件/姓名。 然后存储该信息是您的责任。 资源:
仅当用户首次将 Sign in with Apple 与您的应用程序一起使用时,标识服务器才会返回用户状态。 后续尝试不会返回有关此用户状态的任何信息,例如在发生断开连接和重新连接后或从其他设备。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.