0.0.14 • Published 3 years ago

@achernykh/apple-sign-in v0.0.14

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Capacitor Sign in With Apple

All Contributors

All Contributors

Capacitor plugin to support Sign in With Apple

Maintainers

MaintainerGitHubSocialSponsoring Company
Max Lynchmlynch@maxlynchIonic

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

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

0.0.14

3 years ago

0.0.13

3 years ago

0.0.12

3 years ago