capacitor-community / apple-sign-in

Sign in with Apple Support
MIT License
143 stars 60 forks source link

usage of registerWebPlugin #28

Closed mesqueeb closed 1 year ago

mesqueeb commented 3 years ago

is it

import { SignInWithApple } from "@capacitor-community/apple-sign-in";
registerWebPlugin(SignInWithApple);

or

import { Plugins } from "@capacitor/core";
registerWebPlugin(Plugins.SignInWithApple);

?

cyril-colin commented 3 years ago

In my project, I use it like this :

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

// ...
Plugins.SignInWithApple.authorize(options)
jcesarmobile commented 1 year ago

It's just import { SignInWithApple } from '@capacitor-community/apple-sign-in'; now, without calling registerWebPlugin