Contents

Account Creation Requires Phone Number

A Boolean value that indicates whether an app requires someone to provide a phone number to create an account.

Discussion

When your app calls createPlatformPublicKeyCredentialRegistrationRequest(acceptedContactIdentifiers:shouldRequestName:relyingPartyIdentifier:challenge:userID:) to start the account-creation flow, the acceptedContactIdentifiers array can contain ASContactIdentifierRequest.email, ASContactIdentifierRequest.phoneNumber, or both. If the array only contains phoneNumber, then you must include the com.apple.developer.authentication-services.account-creation-requires-phone-number entitlement in your app in Xcode, which states your app always requires a person’s phone number to create an account, with or without the use of the Account Creation API.

If your call to createPlatformPublicKeyCredentialRegistrationRequest(acceptedContactIdentifiers:shouldRequestName:relyingPartyIdentifier:challenge:userID:) allows use of an email to create an account, or a choice of email or phone number, you don’t need this entitlement.

See Also

Authentication