🔥 Easily integrate Firebase into your Nuxt project. 🔥
MIT License
Bot releases are hidden (Show)
Published by lupas almost 5 years ago
* Firebase Auth in Universal Mode: Added functionality that automatically creates a cookie that gets sent to the server in the initial request that can be used for server-side authentication
* getAuthUserFromCookie() Helper: Added helper that supports parsing the cookie into an authUser object
For more information refer to the updated documentation.
Published by lupas almost 5 years ago
functions.emulatorPort
(https://github.com/lupas/nuxt-fire/issues/64):Thanks to @Ferrasil for the suggestion.
Published by lupas almost 5 years ago
static
, preload
& chunkName
options to all services. See documentation.vendors.firebase-${serviceName}.js
by default.Published by lupas almost 5 years ago
enablePersistance
option to true
:firestore: {
enablePersistence: true
}
Published by lupas almost 5 years ago
Thanks to @aaharu for the PR.
Published by lupas almost 5 years ago
Thanks to @dr3tt for the PR. 👍
Published by lupas almost 5 years ago
Hi there 👋
We made quite some changes to nuxt-fire with this update, mostly under the hood by restructuring the entire repository structure, but also some changes in the config that will affect you and need action from your side.
In the long run, we believe these changes will make life with nuxt-fire easier, so we hope you appreciate the changes.
New layout of the options object and addition of new options.
We got rid of the useOnly
option. Services must now be enabled via the services
object like so:
services: {
auth: true,
firestore: true
// ... and so on
}
Make sure to re-configure your nuxt.config.js
according to the new layout of the nuxt-fire options as you can see in our beautiful new updated Documentation.
Since we updated the folder structure of the entire repository, you might get a Nuxt Fatal error when updating to v3.0.0.
To solve this, simple remove your package.json.lock and node_modules folder and do a clean install of your modules with npm install
.
Helper functions now need to be imported from 'nuxt-fire/src/helpers'
instead of 'nuxt-fire/helpers'
movePluginBeforeInitAuthPlugin(plugins, pluginName)
now also accepts plugin arrays that contain just plugin name strings, not only the objects. (#55)onFirebaseHosting
flag.Published by lupas almost 5 years ago
config: {
production: {
apiKey: '<apiKey>',
authDomain: '<authDomain>',
databaseURL: '<databaseURL>',
projectId: '<projectId>',
storageBucket: '<storageBucket>',
messagingSenderId: '<messagingSenderId>',
appId: '<appId>',
measurementId: '<measurementId>'
},
development: {
apiKey: '<apiKey>',
authDomain: '<authDomain>',
databaseURL: '<databaseURL>',
projectId: '<projectId>',
storageBucket: '<storageBucket>',
messagingSenderId: '<messagingSenderId>',
appId: '<appId>',
measurementId: '<measurementId>'
}
}
config: {
apiKey: '<apiKey>',
authDomain: '<authDomain>',
databaseURL: '<databaseURL>',
projectId: '<projectId>',
storageBucket: '<storageBucket>',
messagingSenderId: '<messagingSenderId>',
appId: '<appId>',
measurementId: '<measurementId>'
}
Published by lupas almost 5 years ago
Published by lupas almost 5 years ago
fcmPublicVapidKey
is added to config[environment|, the method messaging.usePublicVapidKey(key)
gets called by nuxt-fire after FCM initialization - so you can delete it from your code and don't have to handle different keys for different environments yourself.Published by lupas almost 5 years ago
Published by lupas almost 5 years ago
‼️ Important: This feature has not been fully tested for all cases, use it with care. It might get changed completely in future updates. Use it at your own risk. If you have any issues with the initMessaging feature please let us know here and help us improve it.
Published by lupas almost 5 years ago
Published by lupas almost 5 years ago
movePluginBeforeInitAuthPlugin
.‼️ Important: This feature has not been fully tested for all cases, use it with care. It might get changed completely in future updates. If you have any issues with the initAuth feature please let us know here and help us improve it.
‼️ Important: Since we updated the folder structure in this update, you might get a Nuxt Fatal error of the following kind when updating to v2.4.0. To solve this, simple remove your package.json.lock and node_modules folder and do a clean install of your modules with
npm i
.
✖ Nuxt Fatal Error
Error: Template src not found:
/Users/<path>/node_modules/nuxt-fire/plugin.js
Published by lupas almost 5 years ago
Thanks to @fachrihawari for the PR.
Published by lupas about 5 years ago
Thanks to @fachrihawari for the PR.
Published by lupas about 5 years ago
this.$fireAnalytics
and this.$fireAnalyticsObj
.Thanks to @lesharris again for the contribution!
Published by lupas about 5 years ago
Thanks to @lesharris for the pull request!