vildhjarta8 / apple-sign-in

Sign in with Apple Support

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

Maintenance Status: Partially Maintained (help wanted)

Installation

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

Usage (iOS)

import { Plugins } from '@capacitor/core'
import { ResponseSignInWithApplePlugin } from '@capacitor-community/apple-sign-in';

const { SignInWithApple } = Plugins

try {
  const response: ResponseSignInWithApplePlugin = await SignInWithApple.Authorize()
} catch (e) {
}

Instructions (Android/Web)

The plugin currently works for iOS only. It's made only to pass Apple's new terms. Add the Apple button only after you've checked that the user is on iOS device. Web support is planned for Apple's JS support (help wanted!).

const { Device } = Plugins

let device = await Device.getInfo()

if (device.platform === 'ios') {
  // Show the button with SignInWithApple.Authorize()
}

Contributors ✨

Thanks goes to these wonderful people (emoji key):


Masahiko Sakakibara

💻

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

About

Sign in with Apple Support

License:MIT License


Languages

Language:Swift 41.1%Language:Java 21.8%Language:TypeScript 13.8%Language:Ruby 11.5%Language:Objective-C 8.4%Language:JavaScript 3.3%