Sign In with Apple allows users to set up an account and sign in to your apps and websites with their Apple ID.
https://medium.com/@priya_talreja/sign-in-with-apple-using-swift-5cd8695a46b6