1.1.2-0 • Published 5 years ago

@keik/react-findy-id v1.1.2-0

Weekly downloads
-
License
MIT
Repository
github
Last release
5 years ago

CircleCI

React Findy ID

How to use

Install package

yarn

yarn add @findy/react-findy-id

npm

npm install @findy/react-findy-id --save

Put Sign-in button

Put Sign-in button on your app.

<FindyIdComponent
  afterSignInSuccessCallback={afterSignInSuccessCallback}
  signInSuccessUrl="http://localhost:3001"
  tosUrl="https://findy-code.io/terms"
  privacyPolicyUrl="https://findy-code.io/policy"
/>
NametypeDescription
afterSignInSuccessCallbackFunctionCallback after sign-in, before redirect. The parameter authResult is a firebase authentication result object.
signInSuccessUrlStringRedirect URL after sign-in.
tosUrlStringTerm of Service URL.
privacyPolicyUrlStringPrivacy Policy URL.

For package developers

Setup

  • git clone https://github.com/Findy/react-findy-id.git
  • npm install

Run on local example app

  • npm start
  • Open http://localhost:3001

Directory structures

  • build
    • Output of build.
  • examples
    • Example app which is used by package developer.
  • src
    • Main code.

Publish

  • git checkout master
  • npm version [major | minor | patch]
  • git push origin master
  • git push origin vX.X.X
  • npm publish --access=public