{"_id":"@chalermpong/strapi-firebase-auth-strategy","_rev":"2-98f573a2503995bc31ed24a411b04ea3","name":"@chalermpong/strapi-firebase-auth-strategy","dist-tags":{"latest":"0.9.1"},"versions":{"0.9.0":{"name":"@chalermpong/strapi-firebase-auth-strategy","version":"0.9.0","keywords":["strapi","plugin","firebase","auth","authentication","strategy"],"author":{"name":"chalermpong","email":"s_pong_c@hotmail.com"},"license":"MIT","_id":"@chalermpong/strapi-firebase-auth-strategy@0.9.0","maintainers":[{"name":"chalermpong","email":"s_pong_c@hotmail.com"}],"homepage":"https://github.com/chalermpong/strapi-firebase-auth-strategy#readme","bugs":{"url":"https://github.com/chalermpong/strapi-firebase-auth-strategy/issues"},"dist":{"shasum":"c26b84321f61491de2eabe58a16bedf7240ad2d3","tarball":"https://registry.npmjs.org/@chalermpong/strapi-firebase-auth-strategy/-/strapi-firebase-auth-strategy-0.9.0.tgz","fileCount":35,"integrity":"sha512-bP52Ut5y41aPJb3hqUxmWjMIhN3fBVXI443FwnwQJm1O4lthhMltRFUU/+WpmQ1jqs8XtXUfqwWtoFcXkUpo5w==","signatures":[{"sig":"MEUCIQDA/6DJtmWwp6o0GHq5cRcHMO4XM0fYEvESjwTfJnTKhwIgXVSLf+j356ZfWvDuHdGS8fRW7AM5ucOgaKLYqypVvVs=","keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U"}],"unpackedSize":24830},"type":"commonjs","strapi":{"kind":"plugin","name":"firebase-auth-strategy","description":"Use Firebase Auth ID Token with your strapi backend","displayName":"Firebase Authentication Strategy - Strapi Plugin"},"exports":{"./package.json":"./package.json","./strapi-admin":{"types":"./dist/admin/src/index.d.ts","import":"./dist/admin/index.mjs","source":"./admin/src/index.ts","default":"./dist/admin/index.js","require":"./dist/admin/index.js"},"./strapi-server":{"types":"./dist/server/src/index.d.ts","import":"./dist/server/index.mjs","source":"./server/src/index.ts","default":"./dist/server/index.js","require":"./dist/server/index.js"}},"gitHead":"d02e96ed97bd67de6f791f3d2cad6cc639403908","scripts":{"lint":"eslint . --ext .ts","build":"strapi-plugin build","watch":"strapi-plugin watch","verify":"strapi-plugin verify","lint:fix":"eslint . --ext .ts --fix","watch:link":"strapi-plugin watch:link","test:ts:back":"run -T tsc -p server/tsconfig.json","test:ts:front":"run -T tsc -p admin/tsconfig.json"},"_npmUser":{"name":"chalermpong","email":"s_pong_c@hotmail.com"},"repository":{"url":"git+ssh://git@github.com/chalermpong/strapi-firebase-auth-strategy.git","type":"git"},"_npmVersion":"10.5.2","description":"Use Firebase Auth ID Token with your strapi backend","directories":{},"_nodeVersion":"20.13.1","dependencies":{"react-intl":"^7.1.11","@strapi/icons":"^2.0.0-rc.23","firebase-admin":"^13.3.0","@strapi/design-system":"^2.0.0-rc.23"},"_hasShrinkwrap":false,"devDependencies":{"react":"^18.3.1","eslint":"^9.26.0","prettier":"^3.5.3","react-dom":"^18.3.1","@eslint/js":"^9.26.0","typescript":"^5.8.3","@types/react":"^19.1.2","@strapi/strapi":"^5.12.7","@types/react-dom":"^19.1.3","react-router-dom":"^6.30.0","styled-components":"^6.1.17","typescript-eslint":"^8.32.0","@strapi/sdk-plugin":"^5.3.2","@strapi/typescript-utils":"^5.12.7","@typescript-eslint/parser":"^8.32.0","@typescript-eslint/eslint-plugin":"^8.32.0"},"peerDependencies":{"react":"^18.3.1","react-dom":"^18.3.1","@strapi/strapi":"^5.12.7","react-router-dom":"^6.30.0","styled-components":"^6.1.17","@strapi/sdk-plugin":"^5.3.2"},"_npmOperationalInternal":{"tmp":"tmp/strapi-firebase-auth-strategy_0.9.0_1746578709579_0.972692759199798","host":"s3://npm-registry-packages-npm-production"}},"0.9.1":{"name":"@chalermpong/strapi-firebase-auth-strategy","description":"Use Firebase Auth ID Token with your strapi backend","version":"0.9.1","keywords":["strapi","plugin","firebase","auth","authentication","strategy"],"type":"commonjs","exports":{"./package.json":"./package.json","./strapi-admin":{"types":"./dist/admin/src/index.d.ts","source":"./admin/src/index.ts","import":"./dist/admin/index.mjs","require":"./dist/admin/index.js","default":"./dist/admin/index.js"},"./strapi-server":{"types":"./dist/server/src/index.d.ts","source":"./server/src/index.ts","import":"./dist/server/index.mjs","require":"./dist/server/index.js","default":"./dist/server/index.js"}},"scripts":{"build":"strapi-plugin build","watch":"strapi-plugin watch","watch:link":"strapi-plugin watch:link","verify":"strapi-plugin verify","test:ts:front":"run -T tsc -p admin/tsconfig.json","test:ts:back":"run -T tsc -p server/tsconfig.json","lint":"eslint . --ext .ts","lint:fix":"eslint . --ext .ts --fix"},"dependencies":{"@strapi/design-system":"^2.0.0-rc.23","@strapi/icons":"^2.0.0-rc.23","firebase-admin":"^13.3.0","react-intl":"^7.1.11"},"devDependencies":{"@eslint/js":"^9.26.0","@strapi/sdk-plugin":"^5.3.2","@strapi/strapi":"^5.12.7","@strapi/typescript-utils":"^5.12.7","@types/react":"^19.1.2","@types/react-dom":"^19.1.3","@typescript-eslint/eslint-plugin":"^8.32.0","@typescript-eslint/parser":"^8.32.0","eslint":"^9.26.0","prettier":"^3.5.3","react":"^18.3.1","react-dom":"^18.3.1","react-router-dom":"^6.30.0","styled-components":"^6.1.17","typescript":"^5.8.3","typescript-eslint":"^8.32.0"},"peerDependencies":{"@strapi/sdk-plugin":"^5.3.2","@strapi/strapi":"^5.12.7","react":"^18.3.1","react-dom":"^18.3.1","react-router-dom":"^6.30.0","styled-components":"^6.1.17"},"strapi":{"kind":"plugin","name":"firebase-auth-strategy","displayName":"Firebase Authentication Strategy - Strapi Plugin","description":"Use Firebase Auth ID Token with your strapi backend"},"license":"MIT","repository":{"type":"git","url":"git+ssh://git@github.com/chalermpong/strapi-firebase-auth-strategy.git"},"bugs":{"url":"https://github.com/chalermpong/strapi-firebase-auth-strategy/issues"},"homepage":"https://github.com/chalermpong/strapi-firebase-auth-strategy#readme","author":{"name":"chalermpong","email":"s_pong_c@hotmail.com"},"_id":"@chalermpong/strapi-firebase-auth-strategy@0.9.1","gitHead":"44b7fbb4f7b1554e917b891e9f40b5f11ef15154","_nodeVersion":"20.13.1","_npmVersion":"10.5.2","dist":{"integrity":"sha512-CE6Ab2MT3ggKStDY5gb7EPsC1w9eXM9D1EdwE7sC3S2bV+xsowMUrzjMLz5SyEMWyaJT65TpbUrO6/mEUnFocA==","shasum":"609d76b0e15037cd708342637712350fbb80106d","tarball":"https://registry.npmjs.org/@chalermpong/strapi-firebase-auth-strategy/-/strapi-firebase-auth-strategy-0.9.1.tgz","fileCount":35,"unpackedSize":24960,"signatures":[{"keyid":"SHA256:DhQ8wR5APBvFHLF/+Tc+AYvPOdTpcIDqOhxsBHRwC7U","sig":"MEQCICWFtjdQFDYNSzIhmJ0u3uy2IIziDDBQa97uUTB+3b7wAiBdNqKoXs7JRDsnUm/iMc2QOciqnjaHCL/GHUx7288U3w=="}]},"_npmUser":{"name":"chalermpong","email":"s_pong_c@hotmail.com"},"directories":{},"maintainers":[{"name":"chalermpong","email":"s_pong_c@hotmail.com"}],"_npmOperationalInternal":{"host":"s3://npm-registry-packages-npm-production","tmp":"tmp/strapi-firebase-auth-strategy_0.9.1_1746579573522_0.9272563012943666"},"_hasShrinkwrap":false}},"time":{"created":"2025-05-07T00:45:09.503Z","modified":"2025-05-07T00:59:33.878Z","0.9.0":"2025-05-07T00:45:09.816Z","0.9.1":"2025-05-07T00:59:33.696Z"},"bugs":{"url":"https://github.com/chalermpong/strapi-firebase-auth-strategy/issues"},"author":{"name":"chalermpong","email":"s_pong_c@hotmail.com"},"license":"MIT","homepage":"https://github.com/chalermpong/strapi-firebase-auth-strategy#readme","keywords":["strapi","plugin","firebase","auth","authentication","strategy"],"repository":{"type":"git","url":"git+ssh://git@github.com/chalermpong/strapi-firebase-auth-strategy.git"},"description":"Use Firebase Auth ID Token with your strapi backend","maintainers":[{"name":"chalermpong","email":"s_pong_c@hotmail.com"}],"readme":"# strapi-firebase-auth-strategy\n\nUse Firebase Auth ID Token with your strapi backend\n\n## Installation\n\n1. Install the plugin\n```bash\nnpm i --save @chalermpong/strapi-firebase-auth-strategy\n```\n\n2. In Firebase console, generate a private key file for Firebase Service Account https://firebase.google.com/docs/admin/setup#initialize_the_sdk_in_non-google_environments\n\n3. Add the following code in your `config/plugins.ts` file.\n```ts\nimport serviceAccount from 'path/to/firebase-adminsdk-fbsvc-xxx.json'\n\nexport default ({env}) => ({\n  'firebase-auth-strategy': {\n    enabled: true,\n    config: {\n      serviceAccount: serviceAccount,\n    },\n  },\n})\n```\n\nHow to use\n\n1. Just authenticate your user with Firebase. \n2. Get ID token of your user, then add `Authorization: Bearer [Firebase ID Token]` to your http request to strapi.\n3. Every user needs to call `registerFirebase` api first to create a new `user-permission.user` record. After that he can start using other api on your backend. \n","readmeFilename":"README.md"}