6.0.0 • Published 8 days ago

@capacitor-community/apple-sign-in v6.0.0

Weekly downloads
1,962
License
MIT
Repository
github
Last release
8 days ago

Capacitor Sign in With Apple

All Contributors

Capacitor plugin to support Sign in With Apple

:rotating_light: This plugin is for Capacitor 5 :rotating_light:

Capacitor 4 users can use version 4.x

Capacitor 3 users can use version 1.x

Capacitor 2 users can use version 0.2.0

Maintainers

MaintainerGitHubSocialSponsoring Company
Max Lynchmlynch@maxlynchIonic
Jose "Pilito" Martinezepicshaggy@pilito_he
Laszlo Csokalcsoka

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):

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

6.0.0

8 days ago

5.0.0

12 months ago

4.0.0

2 years ago

4.0.0-0

2 years ago

1.0.1

3 years ago

0.2.0

3 years ago

0.1.2

3 years ago

0.1.1

3 years ago

0.0.13

3 years ago

0.0.14

3 years ago

1.0.0

3 years ago

0.0.12

4 years ago

0.0.11

4 years ago

0.0.10

4 years ago

0.0.9

4 years ago

0.0.8

4 years ago

0.0.7

4 years ago