twogate / Cordova Plugin Sign In With Apple
Licence: mit
A native-implemented plugin of Sign in with Apple // Thanks to your contribution! // Cordova>=8 iOS>=13
Stars: ✭ 57
Programming Languages
javascript
184084 projects - #8 most used programming language
Projects that are alternatives of or similar to Cordova Plugin Sign In With Apple
Cordova Plugin Firebase
Cordova plugin for Google Firebase
Stars: ✭ 997 (+1649.12%)
Mutual labels: cordova
Yesterday I Learned
Brainfarts are caused by the rupturing of the cerebral sphincter.
Stars: ✭ 50 (-12.28%)
Mutual labels: apple
Fixmystreet Mobile
Cordova application for making reports to FixMyStreet
Stars: ✭ 40 (-29.82%)
Mutual labels: cordova
Blinkid Cordova
ID scanning for cross-platform apps built with Cordova and Phonegap.
Stars: ✭ 44 (-22.81%)
Mutual labels: cordova
Aurelia
Aurelia 2, a standards-based, front-end framework designed for high-performing, ambitious applications.
Stars: ✭ 995 (+1645.61%)
Mutual labels: cordova
Go Apns2
Go package for HTTP/2 Apple Push Notification Service.
Stars: ✭ 53 (-7.02%)
Mutual labels: apple
Angular Toolkit
Angular Schematics and Builders for `@ionic/angular` apps.
Stars: ✭ 45 (-21.05%)
Mutual labels: cordova
Xiaomi Ruby 15.6 Uma Only
macOS Big Sur on XiaoMi Ruby 15.6 (Opencore)
Stars: ✭ 44 (-22.81%)
Mutual labels: apple
Amazon Fresh Whole Foods Delivery Slot Finder
A Mac tool that finds available delivery slots for Amazon's Whole Foods delivery and Amazon Fresh services
Stars: ✭ 1,048 (+1738.6%)
Mutual labels: apple
Cordova Plugin Tensorflow
On-device image recognition via TensorFlow/Inception. For Cordova/PhoneGap.
Stars: ✭ 51 (-10.53%)
Mutual labels: cordova
Quasar Awesome
🎉 A list of awesome things related to Quasar
Stars: ✭ 995 (+1645.61%)
Mutual labels: cordova
Rxswift To Combine Cheatsheet
RxSwift to Apple’s Combine Cheat Sheet
Stars: ✭ 1,040 (+1724.56%)
Mutual labels: apple
Framework7 Plugin 3d Panels
Framework7 plugin to add 3d effect for side panels
Stars: ✭ 56 (-1.75%)
Mutual labels: cordova
Cordova App Harness
[DEPRECATED] Apache Cordova app harness
Stars: ✭ 49 (-14.04%)
Mutual labels: cordova
cordova-plugin-sign-in-with-apple
see also: Official Documentation
This plugin only supports iOS >= 13.
Installation
Plugin installation
cordova plugin add cordova-plugin-sign-in-with-apple
or
cordova plugin add https://github.com/twogate/cordova-plugin-sign-in-with-apple.git
Usage
You should enable Sign in with Apple capability in Xcode. (project file -> Capabilities Tab -> Turn on "SignIn With Apple")
window.cordova.plugins.SignInWithApple.signin(
{ requestedScopes: [0, 1] },
function(succ){
console.log(succ)
alert(JSON.stringify(succ))
},
function(err){
console.error(err)
console.log(JSON.stringify(err))
}
)
Options Example
-
requestedScopes
is an array of requested scopes.-
0
:FullName
-
1
:Email
-
Success Callback Data Example
Based on ASAuthorizationAppleIDCredential.
-
authorizationCode: string
"<short-lived token used by your app for proof of authorization when interacting with the app’s server counterpart>"
-
email: string
"[email protected]"
-
fullName: object, based on NSPersonNameComponents
-
familyName: string
"Doe"
-
givenName: string
"Jane"
-
namePrefix: string
""
-
nameSuffix: string
""
-
nickname: string
""
- phoneticRepresentation: object, based on NSPersonNameComponents
- familyName?: string
- givenName?: string
- namePrefix?: string
- nameSuffix?: string
- nickname?: string
-
familyName: string
-
identityToken: string
"<JSON Web Token (JWT) that securely communicates information about the user to your app>"
-
state: string
"<arbitrary string that your app provided to the request that generated the credential>"
-
user: string
"<identifier associated with the authenticated user>"
Failure Callback Data Example
- error: string
"ASAUTHORIZATION_ERROR"
- code: string
1001
- localizedDescription: string
"The operation couldn’t be completed. (com.apple.AuthenticationServices.AuthorizationError error 1001.)"
- localizedFailureReason: string
""
Error Type
-
1000
ASAuthorizationErrorUnknown
-
1001
ASAuthorizationErrorCanceled
-
1002
ASAuthorizationErrorInvalidResponse
-
1003
ASAuthorizationErrorNotHandled
Note that the project description data, including the texts, logos, images, and/or trademarks,
for each open source project belongs to its rightful owner.
If you wish to add or remove any projects, please contact us at [email protected].