@achernykh/apple-sign-in
TypeScript icon, indicating that this package has built-in type declarations

0.0.14 • Public • Published

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!

Readme

Keywords

Package Sidebar

Install

npm i @achernykh/apple-sign-in

Weekly Downloads

2

Version

0.0.14

License

MIT

Unpacked Size

105 kB

Total Files

39

Last publish

Collaborators

  • achernykh