Skip to content

unagidev/apple-sign-in

 
 

Repository files navigation

Capacitor Sign in With Apple

All Contributors

All Contributors

Capacitor plugin to support Sign in With Apple

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

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!

About

Sign in with Apple Support

Resources

License

Code of conduct

Stars

Watchers

Forks

Packages

No packages published

Languages

  • TypeScript 33.6%
  • Swift 32.8%
  • Java 14.5%
  • Ruby 8.1%
  • Objective-C 5.6%
  • JavaScript 5.4%