New Case Study:See how Anthropic automated 95% of dependency reviews with Socket.Learn More
Socket
Sign inDemoInstall
Socket

cordova-plugin-sign-in-with-apple

Package Overview
Dependencies
Maintainers
4
Versions
8
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

cordova-plugin-sign-in-with-apple

This plugin only supports iOS >= 13.

  • 0.1.2
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
927
decreased by-77.9%
Maintainers
4
Weekly downloads
 
Created
Source

cordova-plugin-sign-in-with-apple

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

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 "address@example.com"
  • fullName: object, based on NSPersonNameComponents
  • 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

FAQs

Package last updated on 24 Jul 2020

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc