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?