1.0.6 • Published 2 years ago
@lomray/strapi-firebase-auth v1.0.6
Strapi plugin for firebase authentication
Getting started
The package is distributed using npm, the node package manager.
npm i --save @lomray/strapi-firebase-authHow it works:
- Get firebase token in your app (e.g.:
auth().currentUser.getIdToken()) - Call API POST
/api/firebase/loginwith{"token": "your-firebase-token"} - Use returned jwt token to call Strapi API (if the user does not exist it will be created automatically).
If Strapi JWT token expired, just call /api/firebase/login again.
NOTE: Configure plugin before use, see Firebase Credentials in Settings section (Admin Panel).
NOTE2: Add phone and photoUrl fields to user entity for save related firebase fields (not required).
Report Bugs/Issues
Any bugs/issues you may face can be submitted as issues in the GitHub repo.