0

I have implemented Sign in with Apple in my app, and I am caching the user's ID(which is a generated UUID().uuidString) and the user's email and full name in UserDefaults.

Let's say the UserDefault values get deleted. The user still remains signed in(I am checking this with FileManager.default.ubiquityIdentityToken != nil ? true : false) and I have to get current user's credential from somewhere to be able to fetch data from the database.

How do I access those?

vladponcea
  • 35
  • 3
  • 1
    Tokens, names, passwords, etc. should be stored in Keychain it is considered secure and a bit more resilient but if the user deletes it there is no way to get it again, you only get that info the very first time the user logs in. You have to save whatever info you need on that first log in you only get the unique id after that. – lorem ipsum Jan 18 '23 at 13:51

0 Answers0