Skip to content

Latest commit

 

History

History
39 lines (29 loc) · 913 Bytes

README.md

File metadata and controls

39 lines (29 loc) · 913 Bytes

react-sign-in-apple

React Component for Sign in with Apple

NPM

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