An optional full name shared by the user.
These fields are populated with values that the user authorized.
The response object (responseObject.fullName) passed back from apple as the credential provider.
import appleAuth, {
AppleAuthRequestOperation,
AppleAuthRequestScope,
} from '@invertase/react-native-apple-authentication';
async function onPressAppleButton() {
/**
* responseObject may contain the following depending on the user's input when authenticating:
* responseObject.fullName.familyName
* responseObject.fullName.givenName
* responseObject.fullName.middleName
* responseObject.fullName.namePrefix
* responseObject.fullName.nameSuffix
* responseObject.fullName.nickname
*/
const responseObject = await appleAuth.performRequest({
requestedOperation: AppleAuthRequestOperation.LOGIN,
requestedScopes: [AppleAuthRequestScope.EMAIL, AppleAuthRequestScope.FULL_NAME],
});
}• familyName: string | null
Defined in lib/index.d.ts:258
Name passed from one generation to another to indicate lineage, e.g. Appleseed
• givenName: string | null
Defined in lib/index.d.ts:248
Name bestowed upon an individual by one's parents, e.g. Johnathan
• middleName: string | null
Defined in lib/index.d.ts:253
Secondary given name chosen to differentiate those with the same first name, e.g. Maple
• namePrefix: string | null
Defined in lib/index.d.ts:243
Pre-nominal letters denoting title, salutation, or honorific, e.g. Dr., Mr.
• nameSuffix: string | null
Defined in lib/index.d.ts:263
Post-nominal letters denoting degree, accreditation, or other honor, e.g. Esq., Jr., Ph.D.
• nickname: string | null
Defined in lib/index.d.ts:268
Name substituted for the purposes of familiarity, e.g. "Johnny"