1.1.4 • Published 4 years ago
react-sign-in-apple v1.1.4
react-sign-in-apple
React Component for Sign in with Apple
Install
npm install --save react-sign-in-apple
Usage
import React from 'react'
import { AppleLogin } from 'react-sign-in-apple'
const AppleLoginComponent = () => {
return (
<AppleLogin
clientId="[clientId]"
redirectURI="[redirectURI]"
onSuccess={console.log}
onFailure={console.error}
render={({ onClick }) => (
<button onClick={onClick}>Sign in with Apple</button>
)}
/>
)
}
Additional Info
See link for docs on Sign in with Apple
License
MIT © Akshit Kr Nagpal