akshitkrnagpal / react-sign-in-apple

React Component for Sign in with Apple

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

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

About

React Component for Sign in with Apple

License:MIT License


Languages

Language:TypeScript 46.9%Language:HTML 26.5%Language:JavaScript 20.4%Language:CSS 6.2%