@capacitor-community/apple-sign-in
TypeScript icon, indicating that this package has built-in type declarations

5.0.0 • Public • Published

Capacitor Sign in With Apple

All Contributors

Capacitor plugin to support Sign in With Apple

🚨 This plugin is for Capacitor 4 🚨

Capacitor 3 users can use version 1.x Capacitor 2 users can use version 0.2.0.

Maintainers

Maintainer GitHub Social Sponsoring Company
Max Lynch mlynch @maxlynch Ionic
Jose "Pilito" Martinez epicshaggy @pilito_he
Laszlo Csoka lcsoka

Maintenance Status: Partially Maintained (help wanted)

Installation

  • npm i @capacitor-community/apple-sign-in
  • npx cap update

Usage (iOS, Web)

import {
  SignInWithApple,
  SignInWithAppleResponse,
  SignInWithAppleOptions,
} from '@capacitor-community/apple-sign-in';

let options: SignInWithAppleOptions = {
  clientId: 'com.your.webservice',
  redirectURI: 'https://www.yourfrontend.com/login',
  scopes: 'email name',
  state: '12345',
  nonce: 'nonce',
};

SignInWithApple.authorize(options)
  .then((result: SignInWithAppleResponse) => {
    // Handle user information
    // Validate token with server and create new session
  })
  .catch(error => {
    // Handle error
  });

Instructions (Android)

Not supported.

Contributors

Thanks goes to these wonderful people (emoji key):


Masahiko Sakakibara

💻

Pilito

💻

lcsoka

💻

This project follows the all-contributors specification. Contributions of any kind welcome!

Versions

Current Tags

Version History

Package Sidebar

Install

npm i @capacitor-community/apple-sign-in

Weekly Downloads

10,135

Version

5.0.0

License

MIT

Unpacked Size

7.04 MB

Total Files

98

Last publish

Collaborators

  • ionicjs
  • danielprrazevedo
  • nkalupahana
  • dtarnawsky
  • ryaa
  • dallasjames
  • tafelnl
  • thegnuu
  • pbowyer
  • capcombot
  • jcesarmobile
  • maxlynch
  • mhartington
  • dotnetkow
  • it_mike_s
  • byrds
  • rdlabo
  • priyankpatel
  • dwieeb
  • stewan
  • arielhernandezmusa
  • jeepq
  • start9keagan
  • boosten
  • nklayman
  • ihadeed
  • ckgaparajita
  • jpender
  • nhyatt
  • pwespi
  • epicshaggy
  • thomasvidas
  • robingenz
  • diachedelic
  • johnborges
  • tobyas
  • elylucas
  • larsmikkelsen
  • giodimiliaionic
  • brownoxford
  • mrbatista
  • bazuka5801
  • hemang