cordova-plugin-apple-login
Install
npm i cordova-plugin-apple-login
Usage
SignInWithApple.isAvailable()
Returns true if Sign in with Apple is available.
Sample:
SignInWithApple
SignInWithApple.request(options)
Request authentication for Apple ID.
Options:
requestedScopes: SignInWithAppleScopeEmail requestedOperation: SignInWithAppleOperationLogin user: 'userId' state: 'state' nonce: 'nonce'
Returns:
authorizedScopes: identityToken: 'identityToken' authorizationCode: 'authorizationCode' realUserStatus: 1 fullName: namePrefix: null givenName: null nameSuffix: null middleName: null familyName: null nickname: null email: null state: null user: 'userId'
see: https://developer.apple.com/documentation/authenticationservices/asauthorizationappleidcredential
Sample:
SignInWithApple
SignInWithApple.getCredentialState(options)
Returns the user credential status.
Options:
userId: 'userId'
Returns:
Sample:
SignInWithApple