parse-community / Parse-SDK-iOS-OSX

The Apple SDK for Parse Platform (iOS, macOS, watchOS, tvOS)
https://parseplatform.org
Other
2.81k stars 867 forks source link

Detect if PFUser is linked to Sign in with Apple #1577

Open bcbeta opened 3 years ago

bcbeta commented 3 years ago

Is it possible to determine if the PFUser is connected to Apple Sign in so that I don't grab the username which is appears as a random collection of letters?

drdaz commented 3 years ago

Check the user's auth data maybe?

bcbeta commented 3 years ago

This isn't working for me but maybe I am misunderstanding how to access the authData?

if let authDictionary = user["authData"] as? Dictionary<String, Any>, let appleAuth = authDictionary["apple"]  {
      print("apple login")
}