react-sign-in-apple
v1.1.4
Published
Sign in with Apple component for react
Downloads
255
Maintainers
Readme
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