Skip to content

CyCraft/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

Maintenance Status: Partially Maintained (help wanted)

Installation

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

Usage (iOS, Web)

import { Plugins } from "@capacitor/core";
import {
  SignInWithApple,
  SignInWithApplePluginResponse,
  SignInWithAppleOptions,
} from "@capacitor-community/apple-sign-in";

registerWebPlugin(SignInWithApple);

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

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

Instructions (Android)

In development.

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Masahiko Sakakibara

💻

Pilito

💻

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

  • Swift 37.1%
  • TypeScript 29.9%
  • Java 16.0%
  • Ruby 8.4%
  • Objective-C 6.2%
  • JavaScript 2.4%