Caution
This project is currently unmaintained.
If you do not set "FINDY_FIREBASE_CONFIG",` by default this module connected to "findy-id" project
If you want to connect other project, you need to set the configuration as "FINDY_FIREBASE_CONFIG"
example is here
For more information about Firebase config object, please see below.
https://firebase.google.com/docs/web/setup?hl=en#config-object
yarn add @findy/react-findy-id
npm install @findy/react-findy-id --save
Import React component
import { FindyIdComponent } from '@findy/react-findy-id'and 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"
/>| Name | type | Description |
|---|---|---|
| afterSignInSuccessCallback | Function | Callback after sign-in, before redirect. The parameter authResult is a firebase authentication result object. |
| signInSuccessUrl | String | Redirect URL after sign-in. |
| tosUrl | String | Term of Service URL. |
| privacyPolicyUrl | String | Privacy Policy URL. |
git clone https://github.com/Findy/react-findy-id.gitnpm installcp .env.example .env- Edit the
.envfile.
npm start- Open
http://localhost:3001
- build
- Output of build.
- examples
- Example app which is used by package developer.
- src
- Main code.
git checkout masternpm version [major | minor | patch]git push origin mastergit push origin vX.X.Xnpm publish --access=public
git clone https://github.com/firebase/firebaseui-web.gitcd firebaseui-web- Replace
でログインtoでログイン/登録intranslations/ja.xtbfile. npm installnpm run build build-npm-jacp dist/npm__ja.js <react-findy-id directory>/lib