1.0.6 • Published 4 years ago

id-applesigninplugin v1.0.6

Weekly downloads
5
License
MIT
Repository
github
Last release
4 years ago

IDAppleSignInPlugIn

This plugin let's you implement Apple SignIn into your Ionic application.

iOS plugin only

  • You need to add the Apple Signin capabilities to your Ionic project

Installation

npm install id-applesigninplugin

Usage example in a Ionic page:

import { Component } from '@angular/core';
import { Plugins } from "@capacitor/core";
const { IDAppleSignInPlugIn } = Plugins

@Component({
  selector: 'app-home',
  templateUrl: 'home.page.html',
  styleUrls: ['home.page.scss'],
})
export class HomePage {

  constructor() {}
     IDAppleSignInPlugIn.doAppleLogin().then((info)=>{
      if (info){
        console.log("on a info ")
        console.log(info)
        let identityTokenString = info["identityTokenString"]
        if (identityTokenString){
          console.log("on recoit "+identityTokenString)
        }
      }
      else{
        console.log("Pas de info")
      }
 
     })
}

API

IDAppleSignInPlugIn.doAppleLogin().then((info)=>{
    
})

You will get the sign in information in the info parameter:

VariablesDescription
useruser identifier
emailemail user
identityTokenStringToken identifier

... Please refer to Apple documentation to know possible values https://developer.apple.com/documentation/authenticationservices/asauthorizationappleidcredential

License

MIT

Free Software, Hell Yeah!

1.0.6

4 years ago

1.0.5

4 years ago

1.0.4

4 years ago

1.0.3

4 years ago

1.0.2

4 years ago

1.0.1

4 years ago

1.0.0

4 years ago