@edgedev/firebase 1.5.12 → 1.5.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (2) hide show
  1. package/README.md +2 -1
  2. package/package.json +1 -1
package/README.md CHANGED
@@ -71,6 +71,7 @@ Add a file (whatever.client.ts) to your "plugins" folder with the following code
71
71
  ***-Note the ".client" in the file name. If the file doesn't have that in the name you must disabled SSR in the nuxt config.***
72
72
  ```javascript
73
73
  import eFb from "@edgedev/firebase";
74
+ const isPersistant = true // If "persistence" is true, login will be saved locally, they can close their browser and when they open they will be logged in automatically. If "persistence" is false login saved only for the session.
74
75
  export default defineNuxtPlugin((nuxtApp) => {
75
76
  nuxtApp.vueApp.use(eFb, {
76
77
  apiKey: "your-apiKey",
@@ -79,7 +80,7 @@ export default defineNuxtPlugin((nuxtApp) => {
79
80
  storageBucket: "your-storageBucket",
80
81
  messagingSenderId: "your-messagingSenderId",
81
82
  appId: "your-appId"
82
- });
83
+ }, isPersistant);
83
84
  });
84
85
  ```
85
86
  ***-Alternatively you can disable SSR for your entire Nuxt project instead of naming the plugin with ".client", update the nuxt.config.ts file:***
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@edgedev/firebase",
3
- "version": "1.5.12",
3
+ "version": "1.5.13",
4
4
  "description": "Vue 3 / Nuxt 3 Plugin or Nuxt 3 global composable for firebase authentication and firestore.",
5
5
  "main": "index.ts",
6
6
  "scripts": {