diff --git a/README.md b/README.md index a0ac8c79..74ed8fce 100644 --- a/README.md +++ b/README.md @@ -67,8 +67,6 @@ Make sure peer dependencies are also installed: `yarn add firebase firebase-admin next react react-dom` -> ⚠️ Note: we recommend pinning `firebase` to 9.16.0 until issue [#614](https://github.com/gladly-team/next-firebase-auth/issues/614) is resolved - Create a module to initialize `next-firebase-auth`. #### Example config: @@ -77,9 +75,17 @@ _See [config documentation](#config) for details_ ```js // ./initAuth.js +import { initializeApp } from 'firebase/app' import { init } from 'next-firebase-auth' const initAuth = () => { + const firebaseClientInitConfig = { + apiKey: 'MyExampleAppAPIKey123', // required + authDomain: 'my-example-app.firebaseapp.com', + databaseURL: 'https://my-example-app.firebaseio.com', + projectId: 'my-example-app-id', + } + initializeApp(firebaseClientInitConfig) init({ authPageURL: '/auth', appPageURL: '/', @@ -103,12 +109,7 @@ const initAuth = () => { }, // Use application default credentials (takes precedence over firebaseAdminInitConfig if set) // useFirebaseAdminDefaultCredential: true, - firebaseClientInitConfig: { - apiKey: 'MyExampleAppAPIKey123', // required - authDomain: 'my-example-app.firebaseapp.com', - databaseURL: 'https://my-example-app.firebaseio.com', - projectId: 'my-example-app-id', - }, + firebaseClientInitConfig, // tenantId: 'example-tenant-id', // Optional, only necessary in multi-tenant configuration cookies: { name: 'ExampleApp', // required @@ -238,7 +239,9 @@ export default withUser()(Demo) #### `init(config)` -Initializes `next-firebase-auth`, taking a [config](#config) object. **Must be called** before calling any other method. +Initializes `next-firebase-auth`, taking a [config](#config) object. +* This **must** before calling any other method. +* We recommend initializing the Firebase client SDK prior to calling this. #### `withUser({ ...options })(PageComponent)` @@ -523,7 +526,7 @@ When true, `firebase-admin` will implicitly find your hosting environment servic `Object` -Configuration passed to the Firebase JS SDK's [`initializeApp`](https://firebase.google.com/docs/reference/node/firebase#initializeapp). The `firebaseClientInitConfig.apiKey` value is **always required**. Other properties are required unless you initialize the `firebase` app yourself before initializing `next-firebase-auth` (or, less commonly, if you're running `next-firebase-auth` solely on the server side). +Configuration matching Firebase JS SDK's [`initializeApp`](https://firebase.google.com/docs/reference/node/firebase#initializeapp). The `firebaseClientInitConfig.apiKey` value is **always required**. We recommend initializing the Firebase client SDK yourself prior to initializing `next-firebase-auth`; however, `next-firebase-auth` will attempt to initialize Firebase if a Firebase app does not already exist. #### cookies diff --git a/example/package.json b/example/package.json index aa377515..94b682bc 100644 --- a/example/package.json +++ b/example/package.json @@ -9,7 +9,7 @@ "deploy": "vercel --prod" }, "dependencies": { - "firebase": "9.16.0", + "firebase": "9.17.1", "firebase-admin": "^11.9.0", "next": "13.4.9", "next-absolute-url": "^1.2.2", diff --git a/example/utils/initAuth.js b/example/utils/initAuth.js index 7091c205..1a562e81 100644 --- a/example/utils/initAuth.js +++ b/example/utils/initAuth.js @@ -1,10 +1,21 @@ /* globals window */ +import { initializeApp } from 'firebase/app' import { init } from 'next-firebase-auth' import absoluteUrl from 'next-absolute-url' const TWELVE_DAYS_IN_MS = 12 * 60 * 60 * 24 * 1000 const initAuth = () => { + // Initialize Firebase. + const firebaseClientInitConfig = { + apiKey: process.env.NEXT_PUBLIC_FIREBASE_PUBLIC_API_KEY, + authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN, + databaseURL: process.env.NEXT_PUBLIC_FIREBASE_DATABASE_URL, + projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID, + } + initializeApp(firebaseClientInitConfig) + + // Initialize next-firebase-auth. init({ debug: true, @@ -78,12 +89,7 @@ const initAuth = () => { }, databaseURL: process.env.NEXT_PUBLIC_FIREBASE_DATABASE_URL, }, - firebaseClientInitConfig: { - apiKey: process.env.NEXT_PUBLIC_FIREBASE_PUBLIC_API_KEY, - authDomain: process.env.NEXT_PUBLIC_FIREBASE_AUTH_DOMAIN, - databaseURL: process.env.NEXT_PUBLIC_FIREBASE_DATABASE_URL, - projectId: process.env.NEXT_PUBLIC_FIREBASE_PROJECT_ID, - }, + firebaseClientInitConfig, cookies: { name: 'ExampleApp', keys: [ diff --git a/example/yarn.lock b/example/yarn.lock index 96f99d4c..853114f2 100644 --- a/example/yarn.lock +++ b/example/yarn.lock @@ -21,15 +21,15 @@ dependencies: text-decoding "^1.0.0" -"@firebase/analytics-compat@0.2.1": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@firebase/analytics-compat/-/analytics-compat-0.2.1.tgz#bec4f3773ae901ffb08a939ed4bc48ad2ec0d6ee" - integrity sha512-qfFAGS4YFsBbmZwVa7xaDnGh7k9BKF4o/piyjySAv0lxRYd74/tSrm3kMk1YM7GCti7PdbgKvl6oSR70zMFQjw== +"@firebase/analytics-compat@0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@firebase/analytics-compat/-/analytics-compat-0.2.3.tgz#ed60472dcd2bfa3f2fa7a5478b63bb7aece652ed" + integrity sha512-HmvbB4GMgh8AUlIDIo/OuFENLCGRXxMvtOueK+m8+DcfqBvG+mkii0Mi9ovo0TnMM62cy3oBYG7PHdjIQNLSLA== dependencies: - "@firebase/analytics" "0.9.1" + "@firebase/analytics" "0.9.3" "@firebase/analytics-types" "0.8.0" - "@firebase/component" "0.6.1" - "@firebase/util" "1.9.0" + "@firebase/component" "0.6.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/analytics-types@0.8.0": @@ -37,27 +37,27 @@ resolved "https://registry.yarnpkg.com/@firebase/analytics-types/-/analytics-types-0.8.0.tgz#551e744a29adbc07f557306530a2ec86add6d410" integrity sha512-iRP+QKI2+oz3UAh4nPEq14CsEjrjD6a5+fuypjScisAh9kXKFvdJOZJDwk7kikLvWVLGEs9+kIUS4LPQV7VZVw== -"@firebase/analytics@0.9.1": - version "0.9.1" - resolved "https://registry.yarnpkg.com/@firebase/analytics/-/analytics-0.9.1.tgz#7ed7dac7a12659e20231b701c4fa1e1ca1285883" - integrity sha512-ARXtNHDrjDhVrs5MqmFDpr5yyCw89r1eHLd+Dw9fotAufxL1WTmo6O9bJqKb7QulIJaA84vsFokA3NaO2DNCnQ== +"@firebase/analytics@0.9.3": + version "0.9.3" + resolved "https://registry.yarnpkg.com/@firebase/analytics/-/analytics-0.9.3.tgz#ae653a6c6bcd667efd1d3cc5207e3e621d737028" + integrity sha512-XdYHBi6RvHYVAHGyLxXX0uRPwZmGeqw1JuWS1rMEeRF/jvbxnrL81kcFAHZVRkEvG9bXAJgL2fX9wmDo3e622w== dependencies: - "@firebase/component" "0.6.1" - "@firebase/installations" "0.6.1" + "@firebase/component" "0.6.3" + "@firebase/installations" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/app-check-compat@0.3.1": - version "0.3.1" - resolved "https://registry.yarnpkg.com/@firebase/app-check-compat/-/app-check-compat-0.3.1.tgz#09842f5e393e05641eebd9d93f75c7a28b17aced" - integrity sha512-IaSYdmaoQgWUrN6rjAYJs1TGXj38Wl9damtrDEyJBf7+rrvKshPAP/CP6e2bd89XOMZKbvy8rKoe1CqX1K3ZjQ== +"@firebase/app-check-compat@0.3.3": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@firebase/app-check-compat/-/app-check-compat-0.3.3.tgz#a1d594ec722fa81f7e11977b407a187e8afdb19a" + integrity sha512-25AQ4W7WUL8OWas40GsABuNU622Dm1ojbfeZ03uKtLj5Af7FerJ25u7zkgm+11pc6rpr5v8E5oxEG9vmNRndEA== dependencies: - "@firebase/app-check" "0.6.1" + "@firebase/app-check" "0.6.3" "@firebase/app-check-types" "0.5.0" - "@firebase/component" "0.6.1" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/app-check-interop-types@0.2.0": @@ -70,25 +70,25 @@ resolved "https://registry.yarnpkg.com/@firebase/app-check-types/-/app-check-types-0.5.0.tgz#1b02826213d7ce6a1cf773c329b46ea1c67064f4" integrity sha512-uwSUj32Mlubybw7tedRzR24RP8M8JUVR3NPiMk3/Z4bCmgEKTlQBwMXrehDAZ2wF+TsBq0SN1c6ema71U/JPyQ== -"@firebase/app-check@0.6.1": - version "0.6.1" - resolved "https://registry.yarnpkg.com/@firebase/app-check/-/app-check-0.6.1.tgz#5be49dab1b7cab214cb9c8411a710fa12548a92e" - integrity sha512-gDG4Gr4n3MnBZAAwLMynU9u/b+f1y87lCezfwlmN1gUxD85mJcvp4hLf87fACTyRkdVfe8hqSXm+MOYn2bMGLg== +"@firebase/app-check@0.6.3": + version "0.6.3" + resolved "https://registry.yarnpkg.com/@firebase/app-check/-/app-check-0.6.3.tgz#221060e5e0eac1e20ee724478b61e89ad6e8420a" + integrity sha512-T9f9ceFLs7x4D2T6whu5a6j7B3qPuYHiZHZxW6DkMh/FoMmRA4/q/HVyu01i9+LyJJx2Xdo6eCcj6ofs9YZjqA== dependencies: - "@firebase/component" "0.6.1" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/app-compat@0.2.1": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@firebase/app-compat/-/app-compat-0.2.1.tgz#29b310267244c273445a5776945c0be1e168ecc2" - integrity sha512-UgPy2ZO0li0j4hAkaZKY9P1TuJEx5RylhUWPzCb8DZhBm+uHdfsFI9Yr+wMlu6qQH2sWoweFtYU6ljGzxwdctw== +"@firebase/app-compat@0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@firebase/app-compat/-/app-compat-0.2.3.tgz#a31c823d415c041591ee8c355776cd5bca7ef6e2" + integrity sha512-sX6rD1KFX6K2CuCnQvc9jZLOgAFZ+sv2jKKahIl4SbTM561D682B8n4Jtx/SgDrvcTVTdb05g4NhZOws9hxYxA== dependencies: - "@firebase/app" "0.9.1" - "@firebase/component" "0.6.1" + "@firebase/app" "0.9.3" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/app-types@0.9.0": @@ -96,26 +96,26 @@ resolved "https://registry.yarnpkg.com/@firebase/app-types/-/app-types-0.9.0.tgz#35b5c568341e9e263b29b3d2ba0e9cfc9ec7f01e" integrity sha512-AeweANOIo0Mb8GiYm3xhTEBVCmPwTYAu9Hcd2qSkLuga/6+j9b1Jskl5bpiSQWy9eJ/j5pavxj6eYogmnuzm+Q== -"@firebase/app@0.9.1": - version "0.9.1" - resolved "https://registry.yarnpkg.com/@firebase/app/-/app-0.9.1.tgz#e3935befdd5bd739003d51779af1620e36d81cce" - integrity sha512-Z8wOSol+pvp4CFyY1mW+aqdZlrwhW/ha2YXQ6/avJ56c5Hnvt4k6GktZE6o5NyzvfJTgNHryhMtnEJMIuLaT4w== +"@firebase/app@0.9.3": + version "0.9.3" + resolved "https://registry.yarnpkg.com/@firebase/app/-/app-0.9.3.tgz#6a9c9b2544fa9a50ad8f405355896c54339c228b" + integrity sha512-G79JUceVDaHRZ4WkA11GyVldVXhdyRJRwWVQFFvAAVfQJLvy2TA6lQjeUn28F6FmeUWxDGwPC30bxCRWq7Op8Q== dependencies: - "@firebase/component" "0.6.1" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" idb "7.0.1" tslib "^2.1.0" -"@firebase/auth-compat@0.3.1": - version "0.3.1" - resolved "https://registry.yarnpkg.com/@firebase/auth-compat/-/auth-compat-0.3.1.tgz#542012424b68e9b7e78a90cbc4290c1b7d37fef8" - integrity sha512-Ndcaam+IL1TuJ6hZ0EcQ+v261cK3kPm4mvUtouoTfl3FNinm9XvhccN8ojuaRtIV9TiY18mzGjONKF5ZCXLIZw== +"@firebase/auth-compat@0.3.3": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@firebase/auth-compat/-/auth-compat-0.3.3.tgz#e52f654e3f14b81cecb2fe252e564778fbba0a47" + integrity sha512-9asUuGtkzUVELH3LYXdiom1nVVV9bqEPqzHohanoofHL/oVTNcHZ4AQ5CXjNATfb6c1WH32U+nEuPiYg26UUIw== dependencies: - "@firebase/auth" "0.21.1" + "@firebase/auth" "0.21.3" "@firebase/auth-types" "0.12.0" - "@firebase/component" "0.6.1" - "@firebase/util" "1.9.0" + "@firebase/component" "0.6.3" + "@firebase/util" "1.9.2" node-fetch "2.6.7" tslib "^2.1.0" @@ -129,23 +129,23 @@ resolved "https://registry.yarnpkg.com/@firebase/auth-types/-/auth-types-0.12.0.tgz#f28e1b68ac3b208ad02a15854c585be6da3e8e79" integrity sha512-pPwaZt+SPOshK8xNoiQlK5XIrS97kFYc3Rc7xmy373QsOJ9MmqXxLaYssP5Kcds4wd2qK//amx/c+A8O2fVeZA== -"@firebase/auth@0.21.1": - version "0.21.1" - resolved "https://registry.yarnpkg.com/@firebase/auth/-/auth-0.21.1.tgz#67347b7ab3bfcc3e92afd89af2ed0eb591277d2d" - integrity sha512-/ap7eT9X7kZTD4Fn2m+nJyC1a9DfFo0H4euoJDN8U+JCMN+GOqkPbkMWCey7wV510WNoPCZQ05+nsAqKkbEVJw== +"@firebase/auth@0.21.3": + version "0.21.3" + resolved "https://registry.yarnpkg.com/@firebase/auth/-/auth-0.21.3.tgz#277a3bf4b09db1b5dd471970cecd844d1835dcbf" + integrity sha512-HPbcwgArLBVTowFcn4qaQr6LCx7BidI9yrQ5MRbQNv4PsgK/3UGpzCYaNPPbvgr9fe+0jNdJO+uC0+dk4xIzCQ== dependencies: - "@firebase/component" "0.6.1" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/component@0.6.1": - version "0.6.1" - resolved "https://registry.yarnpkg.com/@firebase/component/-/component-0.6.1.tgz#1099d18700fd35b114a2ddc4b5e91ce23971e45f" - integrity sha512-yvKthG0InjFx9aOPnh6gk0lVNfNVEtyq3LwXgZr+hOwD0x/CtXq33XCpqv0sQj5CA4FdMy8OO+y9edI+ZUw8LA== +"@firebase/component@0.6.3": + version "0.6.3" + resolved "https://registry.yarnpkg.com/@firebase/component/-/component-0.6.3.tgz#2baea3fa37861eef314a612eba194b0ff7c7ac11" + integrity sha512-rnhq5SOsB5nuJphZF50iwqnBiuuyg9kdnlUn1rBrKfu7/cUVJZF5IG1cWrL0rXXyiZW1WBI/J2pmTvVO8dStGQ== dependencies: - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/component@0.6.4": @@ -156,16 +156,16 @@ "@firebase/util" "1.9.3" tslib "^2.1.0" -"@firebase/database-compat@0.3.1": - version "0.3.1" - resolved "https://registry.yarnpkg.com/@firebase/database-compat/-/database-compat-0.3.1.tgz#417043cb25388e44086dde0605f2ce7dc1bf9902" - integrity sha512-sI7LNh0C8PCq9uUKjrBKLbZvqHTSjsf2LeZRxin+rHVegomjsOAYk9OzYwxETWh3URhpMkCM8KcTl7RVwAldog== +"@firebase/database-compat@0.3.3": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@firebase/database-compat/-/database-compat-0.3.3.tgz#4668e32527f57c1dde6cb03f5fde81eb04503ad4" + integrity sha512-r+L9jTbvsnb7sD+xz6UKU39DgBWqB2pyjzPNdBeriGC9Ssa2MAZe0bIqjCQg51RRXYc/aa/zK1Q2/4uesZeVgQ== dependencies: - "@firebase/component" "0.6.1" - "@firebase/database" "0.14.1" - "@firebase/database-types" "0.10.1" + "@firebase/component" "0.6.3" + "@firebase/database" "0.14.3" + "@firebase/database-types" "0.10.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/database-compat@^0.3.4": @@ -180,13 +180,13 @@ "@firebase/util" "1.9.3" tslib "^2.1.0" -"@firebase/database-types@0.10.1": - version "0.10.1" - resolved "https://registry.yarnpkg.com/@firebase/database-types/-/database-types-0.10.1.tgz#6c2288a7da869acd34f6b61493bb5f8d962b3a2a" - integrity sha512-UgUx9VakTHbP2WrVUdYrUT2ofTFVfWjGW2O1fwuvvMyo6WSnuSyO5nB1u0cyoMPvO25dfMIUVerfK7qFfwGL3Q== +"@firebase/database-types@0.10.3": + version "0.10.3" + resolved "https://registry.yarnpkg.com/@firebase/database-types/-/database-types-0.10.3.tgz#f057e150b8c2aff0c623162abef139ff5df9bfd2" + integrity sha512-Hu34CDhHYZsd2eielr0jeaWrTJk8Hz0nd7WsnYDnXtQX4i49ppgPesUzPdXVBdIBLJmT0ZZRvT7qWHknkOT+zg== dependencies: "@firebase/app-types" "0.9.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" "@firebase/database-types@0.10.4", "@firebase/database-types@^0.10.4": version "0.10.4" @@ -196,15 +196,15 @@ "@firebase/app-types" "0.9.0" "@firebase/util" "1.9.3" -"@firebase/database@0.14.1": - version "0.14.1" - resolved "https://registry.yarnpkg.com/@firebase/database/-/database-0.14.1.tgz#2f2efaceb85ec51b6b10d3647340b44233f7c2ee" - integrity sha512-iX6/p7hoxUMbYAGZD+D97L05xQgpkslF2+uJLZl46EdaEfjVMEwAdy7RS/grF96kcFZFg502LwPYTXoIdrZqOA== +"@firebase/database@0.14.3": + version "0.14.3" + resolved "https://registry.yarnpkg.com/@firebase/database/-/database-0.14.3.tgz#0ddd92e5eeef2dbebefd55ce78b39472a57dd5d3" + integrity sha512-J76W6N7JiVkLaAtPyjaGRkrsIu9pi6iZikuGGtGjqvV19vkn7oiL4Hbo5uTYCMd4waTUWoL9iI08eX184W+5GQ== dependencies: "@firebase/auth-interop-types" "0.2.1" - "@firebase/component" "0.6.1" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" faye-websocket "0.11.4" tslib "^2.1.0" @@ -220,15 +220,15 @@ faye-websocket "0.11.4" tslib "^2.1.0" -"@firebase/firestore-compat@0.3.1": - version "0.3.1" - resolved "https://registry.yarnpkg.com/@firebase/firestore-compat/-/firestore-compat-0.3.1.tgz#f571b2398cfcfe1c2b094d908c21c06c98f232f7" - integrity sha512-7eE4O2ASyy5X2h4a+KCRt0ZpliUAKo2jrKxKl1ZVCnOOjSCkXXeRVRG9eNZRqBwukhdwskJTM9acs0WxmKOYLA== +"@firebase/firestore-compat@0.3.3": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@firebase/firestore-compat/-/firestore-compat-0.3.3.tgz#2fedc13e6242aa98a78cfb710242721d9822c1da" + integrity sha512-fMTsSC0s2cF5w2+JoB0dWD/o4kXtLrUCPGnZPuz4S0bqTN2t0vHr3gdAsQLtnadgwB78ACtinYmf4Udwx7TzDg== dependencies: - "@firebase/component" "0.6.1" - "@firebase/firestore" "3.8.1" + "@firebase/component" "0.6.3" + "@firebase/firestore" "3.8.3" "@firebase/firestore-types" "2.5.1" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/firestore-types@2.5.1": @@ -236,29 +236,29 @@ resolved "https://registry.yarnpkg.com/@firebase/firestore-types/-/firestore-types-2.5.1.tgz#464b2ee057956599ca34de50eae957c30fdbabb7" integrity sha512-xG0CA6EMfYo8YeUxC8FeDzf6W3FX1cLlcAGBYV6Cku12sZRI81oWcu61RSKM66K6kUENP+78Qm8mvroBcm1whw== -"@firebase/firestore@3.8.1": - version "3.8.1" - resolved "https://registry.yarnpkg.com/@firebase/firestore/-/firestore-3.8.1.tgz#16a933529b31cefc01f4805d33a2f513d47ed0f4" - integrity sha512-oc2HMkUnq/zF+g9o974tp5RVCdXCnrU8e5S98ajfWG/hGV+8pr4i6vIa4z0yEXKWGi4X0FguxrC69z1dxEJbNg== +"@firebase/firestore@3.8.3": + version "3.8.3" + resolved "https://registry.yarnpkg.com/@firebase/firestore/-/firestore-3.8.3.tgz#8305113b9535747f982b585b0dd72e85122b5b89" + integrity sha512-4xR3Mqj95bxHg3hZnz0O+LQrHkjq+siT2y+B9da6u68qJ8bzzT42JaFgd1vifhbBpVbBzpFaS2RuCq2E+kGv9g== dependencies: - "@firebase/component" "0.6.1" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" "@firebase/webchannel-wrapper" "0.9.0" "@grpc/grpc-js" "~1.7.0" "@grpc/proto-loader" "^0.6.13" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/functions-compat@0.3.1": - version "0.3.1" - resolved "https://registry.yarnpkg.com/@firebase/functions-compat/-/functions-compat-0.3.1.tgz#4adeb5ff79ded8c9ba1ddc7e15f26220b5e9ddd6" - integrity sha512-f2D2XoRN+QCziCrUL7UrLaBEoG3v2iAeyNwbbOQ3vv0rI0mtku2/yeB2OINz5/iI6oIrBPUMNLr5fitofj7FpQ== +"@firebase/functions-compat@0.3.3": + version "0.3.3" + resolved "https://registry.yarnpkg.com/@firebase/functions-compat/-/functions-compat-0.3.3.tgz#530c30b4dfea14e71657f780d2c281e16209aed7" + integrity sha512-UIAJ2gzNq0p/61cXqkpi9DnlQt0hdlGqgmL5an7KuJth2Iv5uGpKg/+OapAZxPuiUNZgTEyZDB7kNBHvnxWq5w== dependencies: - "@firebase/component" "0.6.1" - "@firebase/functions" "0.9.1" + "@firebase/component" "0.6.3" + "@firebase/functions" "0.9.3" "@firebase/functions-types" "0.6.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/functions-types@0.6.0": @@ -266,28 +266,28 @@ resolved "https://registry.yarnpkg.com/@firebase/functions-types/-/functions-types-0.6.0.tgz#ccd7000dc6fc668f5acb4e6a6a042a877a555ef2" integrity sha512-hfEw5VJtgWXIRf92ImLkgENqpL6IWpYaXVYiRkFY1jJ9+6tIhWM7IzzwbevwIIud/jaxKVdRzD7QBWfPmkwCYw== -"@firebase/functions@0.9.1": - version "0.9.1" - resolved "https://registry.yarnpkg.com/@firebase/functions/-/functions-0.9.1.tgz#5a5999b474596ce5bb2d6020deb8540dc3ad17a9" - integrity sha512-xCSSU4aVSqYU+lCqhn9o5jJcE1KLUOOKyJfCTdCSCyTn2J3vl9Vk4TDm3JSb1Eu6XsNWtxeMW188F/GYxuMWcw== +"@firebase/functions@0.9.3": + version "0.9.3" + resolved "https://registry.yarnpkg.com/@firebase/functions/-/functions-0.9.3.tgz#9ef33efcd38b0235e84ae472d9b51597efe3f871" + integrity sha512-tPJgYY2ROQSYuzvgxZRoHeDj+Ic07/bWHwaftgTriawtupmFOkt5iikuhJSJUhaOpFh9TB335OvCXJw1N+BIlQ== dependencies: "@firebase/app-check-interop-types" "0.2.0" "@firebase/auth-interop-types" "0.2.1" - "@firebase/component" "0.6.1" + "@firebase/component" "0.6.3" "@firebase/messaging-interop-types" "0.2.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/installations-compat@0.2.1": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@firebase/installations-compat/-/installations-compat-0.2.1.tgz#0ee4ceb2145c79f88427f5d0c51d55f6e9ef3898" - integrity sha512-X4IBVKajEeaE45zWX0Y1q8ey39aPFLa+BsUoYzsduMzCxcMBIPZd5/lV1EVGt8SN3+unnC2J75flYkxXVlhBoQ== +"@firebase/installations-compat@0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@firebase/installations-compat/-/installations-compat-0.2.3.tgz#42b05f4e5204c354e0fa059378402bd47635e5bf" + integrity sha512-K9rKM/ym06lkpaKz7bMLxzHK/HEk65XfLJBV+dJkIuWeO0EqqC9VFGrpWAo0QmgC4BqbU58T6VBbzoJjb0gaFw== dependencies: - "@firebase/component" "0.6.1" - "@firebase/installations" "0.6.1" + "@firebase/component" "0.6.3" + "@firebase/installations" "0.6.3" "@firebase/installations-types" "0.5.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/installations-types@0.5.0": @@ -295,13 +295,13 @@ resolved "https://registry.yarnpkg.com/@firebase/installations-types/-/installations-types-0.5.0.tgz#2adad64755cd33648519b573ec7ec30f21fb5354" integrity sha512-9DP+RGfzoI2jH7gY4SlzqvZ+hr7gYzPODrbzVD82Y12kScZ6ZpRg/i3j6rleto8vTFC8n6Len4560FnV1w2IRg== -"@firebase/installations@0.6.1": - version "0.6.1" - resolved "https://registry.yarnpkg.com/@firebase/installations/-/installations-0.6.1.tgz#727749e9959e898fa8af93f054b30f50dcc1ad18" - integrity sha512-gpobP09LLLakBfNCL04fyblfyb3oX1pn+iNmELygrcAkXTO13IAMuOzThI+Xk4NHQZMX1p5GFSAiGbG4yfsSUQ== +"@firebase/installations@0.6.3": + version "0.6.3" + resolved "https://registry.yarnpkg.com/@firebase/installations/-/installations-0.6.3.tgz#b833cf12ac63666246a57100dbdd669fb76a23aa" + integrity sha512-20JFWm+tweNoRjRbz8/Y4I7O5pUJGZsFKCkLl1qNxfNYECSfrZUuozIDJDZC/MeVn5+kB9CwjThDlgQEPrfLdg== dependencies: - "@firebase/component" "0.6.1" - "@firebase/util" "1.9.0" + "@firebase/component" "0.6.3" + "@firebase/util" "1.9.2" idb "7.0.1" tslib "^2.1.0" @@ -312,14 +312,14 @@ dependencies: tslib "^2.1.0" -"@firebase/messaging-compat@0.2.1": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@firebase/messaging-compat/-/messaging-compat-0.2.1.tgz#7eb1b610dfbe30635c684245e71a354c866dd273" - integrity sha512-BykvXtAWOs0W4Ik79lNfMKSxaUCtOJ47PJ9Vw2ySHZ14vFFNuDAtRTOBOlAFhUpsHqRoQFvFCkBGsRIQYq8hzw== +"@firebase/messaging-compat@0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@firebase/messaging-compat/-/messaging-compat-0.2.3.tgz#2d222e4078643e49a708b61b6d0e51edc2bc73bd" + integrity sha512-MmuuohXV2YRzIoJmDngI5qqO/cF2q7SdAaw7k4r61W3ReJy7x4/rtqrIvwNVhM6X/X8NFGBbsYKsCfRHWjFdkg== dependencies: - "@firebase/component" "0.6.1" - "@firebase/messaging" "0.12.1" - "@firebase/util" "1.9.0" + "@firebase/component" "0.6.3" + "@firebase/messaging" "0.12.3" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/messaging-interop-types@0.2.0": @@ -327,28 +327,28 @@ resolved "https://registry.yarnpkg.com/@firebase/messaging-interop-types/-/messaging-interop-types-0.2.0.tgz#6056f8904a696bf0f7fdcf5f2ca8f008e8f6b064" integrity sha512-ujA8dcRuVeBixGR9CtegfpU4YmZf3Lt7QYkcj693FFannwNuZgfAYaTmbJ40dtjB81SAu6tbFPL9YLNT15KmOQ== -"@firebase/messaging@0.12.1": - version "0.12.1" - resolved "https://registry.yarnpkg.com/@firebase/messaging/-/messaging-0.12.1.tgz#71f218a14302ec4b09eb81dfa3fbe8d94b797340" - integrity sha512-/F+2OWarR8TcJJVlQS6zBoHHfXMgfgR0/ukQ3h7Ow3WZ3WZ9+Sj/gvxzothXZm+WtBylfXuhiANFgHEDFL0J0w== +"@firebase/messaging@0.12.3": + version "0.12.3" + resolved "https://registry.yarnpkg.com/@firebase/messaging/-/messaging-0.12.3.tgz#3fd521e31deb9b81ec6316062deb1dcc8198d038" + integrity sha512-a3ZKcGDiV2sKmQDB56PpgL1yjFxXCtff2+v1grnAZZ4GnfNQ74t2EHCbmgY7xRX7ThzMqug54oxhuk4ur0MIoA== dependencies: - "@firebase/component" "0.6.1" - "@firebase/installations" "0.6.1" + "@firebase/component" "0.6.3" + "@firebase/installations" "0.6.3" "@firebase/messaging-interop-types" "0.2.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" idb "7.0.1" tslib "^2.1.0" -"@firebase/performance-compat@0.2.1": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@firebase/performance-compat/-/performance-compat-0.2.1.tgz#65bb8910b9434cb3d518c86c9b372177b29e5d03" - integrity sha512-4mn6eS7r2r+ZAHvU0OHE+3ZO+x6gOVhf2ypBoijuDNaRNjSn9GcvA8udD4IbJ8FNv/k7mbbtA9AdxVb701Lr1g== +"@firebase/performance-compat@0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@firebase/performance-compat/-/performance-compat-0.2.3.tgz#f3939bedc2017a95772fde64a72e97fe4b184268" + integrity sha512-I3rqZsIhauXn4iApfj1ttKQdlti/r8OZBG4YK10vxKSdhAzTIDWDKEsdoCXvvKLwplcMv36sM3WPAPGQLqY5MQ== dependencies: - "@firebase/component" "0.6.1" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/performance" "0.6.1" + "@firebase/performance" "0.6.3" "@firebase/performance-types" "0.2.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/performance-types@0.2.0": @@ -356,27 +356,27 @@ resolved "https://registry.yarnpkg.com/@firebase/performance-types/-/performance-types-0.2.0.tgz#400685f7a3455970817136d9b48ce07a4b9562ff" integrity sha512-kYrbr8e/CYr1KLrLYZZt2noNnf+pRwDq2KK9Au9jHrBMnb0/C9X9yWSXmZkFt4UIdsQknBq8uBB7fsybZdOBTA== -"@firebase/performance@0.6.1": - version "0.6.1" - resolved "https://registry.yarnpkg.com/@firebase/performance/-/performance-0.6.1.tgz#0ca5efaf9523cf42777a6770706626514da2ca60" - integrity sha512-mT/CWz3CLgyn/a3sO/TJgrTt+RA3DfuvWwGXY9zmIiuBZY2bDi1M2uMefJdJKc9sBUPRajNF6RL10nGYq3BAuQ== +"@firebase/performance@0.6.3": + version "0.6.3" + resolved "https://registry.yarnpkg.com/@firebase/performance/-/performance-0.6.3.tgz#663c468dc4d62b6e211938377e21a01854803646" + integrity sha512-NQmQN6Ete7i9jz1mzULJZEGvsOmwwdUy6vpqnhUxSFMYPnlBKjX+yypCUUJDDN5zff5+kfwSD1qCyUAaS0xWUA== dependencies: - "@firebase/component" "0.6.1" - "@firebase/installations" "0.6.1" + "@firebase/component" "0.6.3" + "@firebase/installations" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/remote-config-compat@0.2.1": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@firebase/remote-config-compat/-/remote-config-compat-0.2.1.tgz#d04be14a5aaa0e9fed36a7bf746610707f0a8e29" - integrity sha512-RPCj7c2Q3QxMgJH3YCt0iD57KppFApghxAGETzlr6Jm6vT7k0vqvk2KgRBgKa4koJBsgwlUtRn2roaCqUEadyg== +"@firebase/remote-config-compat@0.2.3": + version "0.2.3" + resolved "https://registry.yarnpkg.com/@firebase/remote-config-compat/-/remote-config-compat-0.2.3.tgz#b0c0ef9978186bc58b262a39b9a41ec1bf819df3" + integrity sha512-w/ZL03YgYaXq03xIRyJ5oPhXZi6iDsY/v0J9Y7I7SqxCYytEnHVrL9nvBqd9R94y5LRAVNPCLokJeeizaUz4VQ== dependencies: - "@firebase/component" "0.6.1" + "@firebase/component" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/remote-config" "0.4.1" + "@firebase/remote-config" "0.4.3" "@firebase/remote-config-types" "0.3.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" "@firebase/remote-config-types@0.3.0": @@ -384,47 +384,47 @@ resolved "https://registry.yarnpkg.com/@firebase/remote-config-types/-/remote-config-types-0.3.0.tgz#689900dcdb3e5c059e8499b29db393e4e51314b4" integrity sha512-RtEH4vdcbXZuZWRZbIRmQVBNsE7VDQpet2qFvq6vwKLBIQRQR5Kh58M4ok3A3US8Sr3rubYnaGqZSurCwI8uMA== -"@firebase/remote-config@0.4.1": - version "0.4.1" - resolved "https://registry.yarnpkg.com/@firebase/remote-config/-/remote-config-0.4.1.tgz#1f27108e402a84a2334464eaa00857827bca83d6" - integrity sha512-RCzBH3FjAPRSP3M1T7jdxLYBesIdLtNIQ0fR9ywJpGSSa0kIXEJ9iSZMTP+9pJtaCxz8db07FvjEqg7Y+lgjzg== +"@firebase/remote-config@0.4.3": + version "0.4.3" + resolved "https://registry.yarnpkg.com/@firebase/remote-config/-/remote-config-0.4.3.tgz#85c4934d093a4c7b8a336af70ada83e936347a2b" + integrity sha512-Q6d4jBWZoNt6SYq87bjtDGUHFkKwAmGnNjWyRjl14AZqE1ilgd9NZHmutharlYJ3LvxMsid80HdK5SgGEpIPfg== dependencies: - "@firebase/component" "0.6.1" - "@firebase/installations" "0.6.1" + "@firebase/component" "0.6.3" + "@firebase/installations" "0.6.3" "@firebase/logger" "0.4.0" - "@firebase/util" "1.9.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/storage-compat@0.2.1": - version "0.2.1" - resolved "https://registry.yarnpkg.com/@firebase/storage-compat/-/storage-compat-0.2.1.tgz#1500490a197724901cd4b6f36f63c824607452c9" - integrity sha512-H0oFdYsMn2Z6tP9tlVERBkJiZsCbFAcl3Li1dnpvDg9g323egdjCnUUgH/tJODRR/Y84iZSNRkg4FvHDVI/o7Q== +"@firebase/storage-compat@0.3.1": + version "0.3.1" + resolved "https://registry.yarnpkg.com/@firebase/storage-compat/-/storage-compat-0.3.1.tgz#b8536c3a435f8ce5eb07796ca10fda16896a9bae" + integrity sha512-6HaTvWsT5Yy3j4UpCZpMcFUYEkJ2XYWukdyTl02u6VjSBRLvkhOXPzEfMvgVWqhnF/rYVfPdjrZ904wk5OxtmQ== dependencies: - "@firebase/component" "0.6.1" - "@firebase/storage" "0.10.1" - "@firebase/storage-types" "0.7.0" - "@firebase/util" "1.9.0" + "@firebase/component" "0.6.3" + "@firebase/storage" "0.11.1" + "@firebase/storage-types" "0.8.0" + "@firebase/util" "1.9.2" tslib "^2.1.0" -"@firebase/storage-types@0.7.0": - version "0.7.0" - resolved "https://registry.yarnpkg.com/@firebase/storage-types/-/storage-types-0.7.0.tgz#0beaeafb62be7ebcf402e25b8cf8fa5a157fe925" - integrity sha512-n/8pYd82hc9XItV3Pa2KGpnuJ/2h/n/oTAaBberhe6GeyWQPnsmwwRK94W3GxUwBA/ZsszBAYZd7w7tTE+6XXA== +"@firebase/storage-types@0.8.0": + version "0.8.0" + resolved "https://registry.yarnpkg.com/@firebase/storage-types/-/storage-types-0.8.0.tgz#f1e40a5361d59240b6e84fac7fbbbb622bfaf707" + integrity sha512-isRHcGrTs9kITJC0AVehHfpraWFui39MPaU7Eo8QfWlqW7YPymBmRgjDrlOgFdURh6Cdeg07zmkLP5tzTKRSpg== -"@firebase/storage@0.10.1": - version "0.10.1" - resolved "https://registry.yarnpkg.com/@firebase/storage/-/storage-0.10.1.tgz#389e4b8b2731bc0bb8c20b8ce314916168a866ef" - integrity sha512-eN4ME+TFCh5KfyG9uo8PhE6cgKjK5Rb9eucQg1XEyLHMiaZiUv2xSuWehJn0FaL+UdteoaWKuRUZ4WXRDskXrA== +"@firebase/storage@0.11.1": + version "0.11.1" + resolved "https://registry.yarnpkg.com/@firebase/storage/-/storage-0.11.1.tgz#602ddb7bce77077800a46bcdfa76f36d7a265c51" + integrity sha512-Xv8EG2j52ugF2xayBz26U9J0VBXHXPMVxSN+ph3R3BSoHxvMLaPu+qUYKHavSt+zbcgPH2GyBhrCdJK6SaDFPA== dependencies: - "@firebase/component" "0.6.1" - "@firebase/util" "1.9.0" + "@firebase/component" "0.6.3" + "@firebase/util" "1.9.2" node-fetch "2.6.7" tslib "^2.1.0" -"@firebase/util@1.9.0": - version "1.9.0" - resolved "https://registry.yarnpkg.com/@firebase/util/-/util-1.9.0.tgz#4aad6d777d140296839874a48339c6544d3ff11c" - integrity sha512-oeoq/6Sr9btbwUQs5HPfeww97bf7qgBbkknbDTXpRaph2LZ23O9XLCE5tJy856SBmGQfO4xBZP8dyryLLM2nSQ== +"@firebase/util@1.9.2": + version "1.9.2" + resolved "https://registry.yarnpkg.com/@firebase/util/-/util-1.9.2.tgz#f5e9e393c5bae3547b9c823ee12076be1e23b1e2" + integrity sha512-9l0uMGPGw3GsoD5khjMmYCCcMq/OR/OOSViiWMN+s2Q0pxM+fYzrii1H+r8qC/uoMjSVXomjLZt0vZIyryCqtQ== dependencies: tslib "^2.1.0" @@ -1692,37 +1692,37 @@ firebase-admin@^11.9.0: "@google-cloud/firestore" "^6.6.0" "@google-cloud/storage" "^6.9.5" -firebase@9.16.0: - version "9.16.0" - resolved "https://registry.yarnpkg.com/firebase/-/firebase-9.16.0.tgz#f9b7f07bf67ff5d1e7e925d502b9ac02133058e6" - integrity sha512-nNLpDwJvfP3crRc6AjnHH46TAkFzk8zimNVMJfYRCwAf5amOSGyU8duuc3IsJF6dQGiYLSfzfr2tMCsQa+rhKQ== - dependencies: - "@firebase/analytics" "0.9.1" - "@firebase/analytics-compat" "0.2.1" - "@firebase/app" "0.9.1" - "@firebase/app-check" "0.6.1" - "@firebase/app-check-compat" "0.3.1" - "@firebase/app-compat" "0.2.1" +firebase@9.17.1: + version "9.17.1" + resolved "https://registry.yarnpkg.com/firebase/-/firebase-9.17.1.tgz#91c56fe9d9bf5ed1c405030e4fe8133c6069fd40" + integrity sha512-MSZaTRaaRLgDFLqoEnoPYK8zkLwQNvYeLZ3YSKdcQxG8hDifNO22ywS1cSA1ZCGHlQeOsDtfDwBejKcANf/RQw== + dependencies: + "@firebase/analytics" "0.9.3" + "@firebase/analytics-compat" "0.2.3" + "@firebase/app" "0.9.3" + "@firebase/app-check" "0.6.3" + "@firebase/app-check-compat" "0.3.3" + "@firebase/app-compat" "0.2.3" "@firebase/app-types" "0.9.0" - "@firebase/auth" "0.21.1" - "@firebase/auth-compat" "0.3.1" - "@firebase/database" "0.14.1" - "@firebase/database-compat" "0.3.1" - "@firebase/firestore" "3.8.1" - "@firebase/firestore-compat" "0.3.1" - "@firebase/functions" "0.9.1" - "@firebase/functions-compat" "0.3.1" - "@firebase/installations" "0.6.1" - "@firebase/installations-compat" "0.2.1" - "@firebase/messaging" "0.12.1" - "@firebase/messaging-compat" "0.2.1" - "@firebase/performance" "0.6.1" - "@firebase/performance-compat" "0.2.1" - "@firebase/remote-config" "0.4.1" - "@firebase/remote-config-compat" "0.2.1" - "@firebase/storage" "0.10.1" - "@firebase/storage-compat" "0.2.1" - "@firebase/util" "1.9.0" + "@firebase/auth" "0.21.3" + "@firebase/auth-compat" "0.3.3" + "@firebase/database" "0.14.3" + "@firebase/database-compat" "0.3.3" + "@firebase/firestore" "3.8.3" + "@firebase/firestore-compat" "0.3.3" + "@firebase/functions" "0.9.3" + "@firebase/functions-compat" "0.3.3" + "@firebase/installations" "0.6.3" + "@firebase/installations-compat" "0.2.3" + "@firebase/messaging" "0.12.3" + "@firebase/messaging-compat" "0.2.3" + "@firebase/performance" "0.6.3" + "@firebase/performance-compat" "0.2.3" + "@firebase/remote-config" "0.4.3" + "@firebase/remote-config-compat" "0.2.3" + "@firebase/storage" "0.11.1" + "@firebase/storage-compat" "0.3.1" + "@firebase/util" "1.9.2" firebaseui@^6.0.0: version "6.1.0"