@tern-secure/nextjs 4.2.8 → 4.2.9
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.
|
@@ -33,7 +33,7 @@ const APP_NAME = process.env.NEXT_PUBLIC_APP_NAME;
|
|
|
33
33
|
const config = (0, import_config.initializeConfig)();
|
|
34
34
|
const clientApp = (0, import_app.getApps)().length === 0 ? (0, import_app.initializeApp)(config, APP_NAME) : (0, import_app.getApps)()[0];
|
|
35
35
|
const ternSecureAuth = (0, import_auth.getAuth)(clientApp);
|
|
36
|
-
(0, import_auth.setPersistence)(ternSecureAuth, import_auth.
|
|
36
|
+
(0, import_auth.setPersistence)(ternSecureAuth, import_auth.browserLocalPersistence);
|
|
37
37
|
const firestore = (0, import_firestore.getFirestore)(clientApp);
|
|
38
38
|
const storage = (0, import_storage.getStorage)(clientApp);
|
|
39
39
|
const TernSecureAuth = () => ternSecureAuth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/client-init.ts"],"sourcesContent":["import { initializeApp, getApps } from 'firebase/app';\nimport { getAuth, setPersistence, browserSessionPersistence } from 'firebase/auth';\nimport { getFirestore } from 'firebase/firestore';\nimport { getStorage } from 'firebase/storage';\nimport { initializeConfig} from './config';\n\nconst APP_NAME = process.env.NEXT_PUBLIC_APP_NAME;\n\n// Initialize immediately\nconst config = initializeConfig();\nconst clientApp = getApps().length === 0 ? initializeApp(config, APP_NAME) : getApps()[0];\nexport const ternSecureAuth = getAuth(clientApp);\nsetPersistence(ternSecureAuth,
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/client-init.ts"],"sourcesContent":["import { initializeApp, getApps } from 'firebase/app';\nimport { getAuth, setPersistence, browserSessionPersistence, browserLocalPersistence} from 'firebase/auth';\nimport { getFirestore } from 'firebase/firestore';\nimport { getStorage } from 'firebase/storage';\nimport { initializeConfig} from './config';\n\nconst APP_NAME = process.env.NEXT_PUBLIC_APP_NAME;\n\n// Initialize immediately\nconst config = initializeConfig();\nconst clientApp = getApps().length === 0 ? initializeApp(config, APP_NAME) : getApps()[0];\nexport const ternSecureAuth = getAuth(clientApp);\nsetPersistence(ternSecureAuth, browserLocalPersistence); //to change later user should be able to choose persistance\nconst firestore = getFirestore(clientApp);\nconst storage = getStorage(clientApp);\n\n\n\nexport const TernSecureAuth = () => ternSecureAuth;\nexport const TernSecureFirestore = () => firestore;\nexport const TernSecureStorage = () => storage;\n"],"mappings":";;;;;;;;;;;;;;;;;;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA;AAAA,iBAAuC;AACvC,kBAA2F;AAC3F,uBAA6B;AAC7B,qBAA2B;AAC3B,oBAAgC;AAEhC,MAAM,WAAW,QAAQ,IAAI;AAG7B,MAAM,aAAS,gCAAiB;AAChC,MAAM,gBAAY,oBAAQ,EAAE,WAAW,QAAI,0BAAc,QAAQ,QAAQ,QAAI,oBAAQ,EAAE,CAAC;AACjF,MAAM,qBAAiB,qBAAQ,SAAS;AAAA,IAC/C,4BAAe,gBAAgB,mCAAuB;AACtD,MAAM,gBAAY,+BAAa,SAAS;AACxC,MAAM,cAAU,2BAAW,SAAS;AAI7B,MAAM,iBAAiB,MAAM;AAC7B,MAAM,sBAAsB,MAAM;AAClC,MAAM,oBAAoB,MAAM;","names":[]}
|
|
@@ -1,5 +1,5 @@
|
|
|
1
1
|
import { initializeApp, getApps } from "firebase/app";
|
|
2
|
-
import { getAuth, setPersistence,
|
|
2
|
+
import { getAuth, setPersistence, browserLocalPersistence } from "firebase/auth";
|
|
3
3
|
import { getFirestore } from "firebase/firestore";
|
|
4
4
|
import { getStorage } from "firebase/storage";
|
|
5
5
|
import { initializeConfig } from "./config";
|
|
@@ -7,7 +7,7 @@ const APP_NAME = process.env.NEXT_PUBLIC_APP_NAME;
|
|
|
7
7
|
const config = initializeConfig();
|
|
8
8
|
const clientApp = getApps().length === 0 ? initializeApp(config, APP_NAME) : getApps()[0];
|
|
9
9
|
const ternSecureAuth = getAuth(clientApp);
|
|
10
|
-
setPersistence(ternSecureAuth,
|
|
10
|
+
setPersistence(ternSecureAuth, browserLocalPersistence);
|
|
11
11
|
const firestore = getFirestore(clientApp);
|
|
12
12
|
const storage = getStorage(clientApp);
|
|
13
13
|
const TernSecureAuth = () => ternSecureAuth;
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"sources":["../../../src/utils/client-init.ts"],"sourcesContent":["import { initializeApp, getApps } from 'firebase/app';\nimport { getAuth, setPersistence, browserSessionPersistence } from 'firebase/auth';\nimport { getFirestore } from 'firebase/firestore';\nimport { getStorage } from 'firebase/storage';\nimport { initializeConfig} from './config';\n\nconst APP_NAME = process.env.NEXT_PUBLIC_APP_NAME;\n\n// Initialize immediately\nconst config = initializeConfig();\nconst clientApp = getApps().length === 0 ? initializeApp(config, APP_NAME) : getApps()[0];\nexport const ternSecureAuth = getAuth(clientApp);\nsetPersistence(ternSecureAuth,
|
|
1
|
+
{"version":3,"sources":["../../../src/utils/client-init.ts"],"sourcesContent":["import { initializeApp, getApps } from 'firebase/app';\nimport { getAuth, setPersistence, browserSessionPersistence, browserLocalPersistence} from 'firebase/auth';\nimport { getFirestore } from 'firebase/firestore';\nimport { getStorage } from 'firebase/storage';\nimport { initializeConfig} from './config';\n\nconst APP_NAME = process.env.NEXT_PUBLIC_APP_NAME;\n\n// Initialize immediately\nconst config = initializeConfig();\nconst clientApp = getApps().length === 0 ? initializeApp(config, APP_NAME) : getApps()[0];\nexport const ternSecureAuth = getAuth(clientApp);\nsetPersistence(ternSecureAuth, browserLocalPersistence); //to change later user should be able to choose persistance\nconst firestore = getFirestore(clientApp);\nconst storage = getStorage(clientApp);\n\n\n\nexport const TernSecureAuth = () => ternSecureAuth;\nexport const TernSecureFirestore = () => firestore;\nexport const TernSecureStorage = () => storage;\n"],"mappings":"AAAA,SAAS,eAAe,eAAe;AACvC,SAAS,SAAS,gBAA2C,+BAA8B;AAC3F,SAAS,oBAAoB;AAC7B,SAAS,kBAAkB;AAC3B,SAAS,wBAAuB;AAEhC,MAAM,WAAW,QAAQ,IAAI;AAG7B,MAAM,SAAS,iBAAiB;AAChC,MAAM,YAAY,QAAQ,EAAE,WAAW,IAAI,cAAc,QAAQ,QAAQ,IAAI,QAAQ,EAAE,CAAC;AACjF,MAAM,iBAAiB,QAAQ,SAAS;AAC/C,eAAe,gBAAgB,uBAAuB;AACtD,MAAM,YAAY,aAAa,SAAS;AACxC,MAAM,UAAU,WAAW,SAAS;AAI7B,MAAM,iBAAiB,MAAM;AAC7B,MAAM,sBAAsB,MAAM;AAClC,MAAM,oBAAoB,MAAM;","names":[]}
|