@sudobility/auth_lib 0.0.106 → 0.0.108
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.
- package/dist/config/firebase-init.native.d.ts.map +1 -1
- package/dist/config/firebase-init.native.js +4 -4
- package/dist/config/firebase-init.native.js.map +1 -1
- package/dist/signin/index.d.ts +1 -0
- package/dist/signin/index.d.ts.map +1 -1
- package/dist/signin/index.js +1 -0
- package/dist/signin/index.js.map +1 -1
- package/package.json +17 -10
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase-init.native.d.ts","sourceRoot":"","sources":["../../src/config/firebase-init.native.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;
|
|
1
|
+
{"version":3,"file":"firebase-init.native.d.ts","sourceRoot":"","sources":["../../src/config/firebase-init.native.ts"],"names":[],"mappings":"AAMA,OAAO,KAAK,EAAE,kBAAkB,EAAE,MAAM,YAAY,CAAC;AA8CrD,wBAAgB,oBAAoB,IAAI,OAAO,CAE9C;AAQD,wBAAgB,sBAAsB,IAAI,kBAAkB,CA+B3D;AAMD,wBAAgB,cAAc,IAAI,GAAG,GAAG,IAAI,CAE3C;AAMD,wBAAgB,eAAe,IAAI,GAAG,GAAG,IAAI,CAE5C;AAMD,wBAAsB,eAAe,CAAC,IAAI,EAAE,GAAG,GAAG,OAAO,CAAC,IAAI,CAAC,CAE9D"}
|
|
@@ -1,12 +1,13 @@
|
|
|
1
1
|
import { getAnalyticsClient } from '@sudobility/di/rn';
|
|
2
2
|
let firebaseAuth = null;
|
|
3
|
+
let authModule = null;
|
|
3
4
|
let firebaseApp = null;
|
|
4
5
|
let initialized = false;
|
|
5
6
|
function getAuthModule() {
|
|
6
7
|
if (!firebaseAuth) {
|
|
7
8
|
try {
|
|
8
|
-
|
|
9
|
-
firebaseAuth = getAuth();
|
|
9
|
+
authModule = require('@react-native-firebase/auth');
|
|
10
|
+
firebaseAuth = authModule.getAuth();
|
|
10
11
|
}
|
|
11
12
|
catch (e) {
|
|
12
13
|
console.warn('[auth_lib] @react-native-firebase/auth not available:', e);
|
|
@@ -36,8 +37,7 @@ export function initializeFirebaseAuth() {
|
|
|
36
37
|
throw new Error('[auth_lib] React Native Firebase is not available. Make sure @react-native-firebase/app and @react-native-firebase/auth are installed.');
|
|
37
38
|
}
|
|
38
39
|
if (!initialized) {
|
|
39
|
-
|
|
40
|
-
onAuthStateChanged(auth, (user) => {
|
|
40
|
+
authModule.onAuthStateChanged(auth, (user) => {
|
|
41
41
|
try {
|
|
42
42
|
const analyticsClient = getAnalyticsClient();
|
|
43
43
|
if (user) {
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"firebase-init.native.js","sourceRoot":"","sources":["../../src/config/firebase-init.native.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIvD,IAAI,YAAY,GAAe,IAAI,CAAC;
|
|
1
|
+
{"version":3,"file":"firebase-init.native.js","sourceRoot":"","sources":["../../src/config/firebase-init.native.ts"],"names":[],"mappings":"AAKA,OAAO,EAAE,kBAAkB,EAAE,MAAM,mBAAmB,CAAC;AAIvD,IAAI,YAAY,GAAe,IAAI,CAAC;AAIpC,IAAI,UAAU,GAAe,IAAI,CAAC;AAClC,IAAI,WAAW,GAAe,IAAI,CAAC;AACnC,IAAI,WAAW,GAAG,KAAK,CAAC;AAKxB,SAAS,aAAa;IACpB,IAAI,CAAC,YAAY,EAAE,CAAC;QAClB,IAAI,CAAC;YAEH,UAAU,GAAG,OAAO,CAAC,6BAA6B,CAAC,CAAC;YACpD,YAAY,GAAG,UAAU,CAAC,OAAO,EAAE,CAAC;QACtC,CAAC;QAAC,OAAO,CAAC,EAAE,CAAC;YACX,OAAO,CAAC,IAAI,CAAC,uDAAuD,EAAE,CAAC,CAAC,CAAC;QAC3E,CAAC;IACH,CAAC;IACD,OAAO,YAAY,CAAC;A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AAC;AAMD,MAAM,CAAC,KAAK,UAAU,eAAe,CAAC,IAAS;IAC7C,MAAM,IAAI,CAAC,OAAO,EAAE,CAAC;AACvB,CAAC"}
|
package/dist/signin/index.d.ts
CHANGED
|
@@ -2,4 +2,5 @@ export * from './config';
|
|
|
2
2
|
export * from './credentials';
|
|
3
3
|
export * from './firebase-js-auth';
|
|
4
4
|
export * from './firebase-config';
|
|
5
|
+
export { isSignInCancelled, signInCancelledError, SIGN_IN_CANCELLED_CODE, } from '../utils/firebase-errors';
|
|
5
6
|
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/signin/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.d.ts","sourceRoot":"","sources":["../../src/signin/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAMlC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC"}
|
package/dist/signin/index.js
CHANGED
|
@@ -2,4 +2,5 @@ export * from './config';
|
|
|
2
2
|
export * from './credentials';
|
|
3
3
|
export * from './firebase-js-auth';
|
|
4
4
|
export * from './firebase-config';
|
|
5
|
+
export { isSignInCancelled, signInCancelledError, SIGN_IN_CANCELLED_CODE, } from '../utils/firebase-errors';
|
|
5
6
|
//# sourceMappingURL=index.js.map
|
package/dist/signin/index.js.map
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/signin/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC"}
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../src/signin/index.ts"],"names":[],"mappings":"AAQA,cAAc,UAAU,CAAC;AACzB,cAAc,eAAe,CAAC;AAC9B,cAAc,oBAAoB,CAAC;AACnC,cAAc,mBAAmB,CAAC;AAMlC,OAAO,EACL,iBAAiB,EACjB,oBAAoB,EACpB,sBAAsB,GACvB,MAAM,0BAA0B,CAAC"}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@sudobility/auth_lib",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.108",
|
|
4
4
|
"description": "Firebase authentication utilities with token refresh handling",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "./dist/index.js",
|
|
@@ -8,32 +8,39 @@
|
|
|
8
8
|
"types": "./dist/index.d.ts",
|
|
9
9
|
"exports": {
|
|
10
10
|
".": {
|
|
11
|
+
"types": "./dist/index.d.ts",
|
|
11
12
|
"react-native": {
|
|
13
|
+
"types": "./dist/index.rn.d.ts",
|
|
12
14
|
"import": "./dist/index.rn.js",
|
|
13
|
-
"
|
|
15
|
+
"default": "./dist/index.rn.js"
|
|
14
16
|
},
|
|
15
17
|
"import": "./dist/index.js",
|
|
16
|
-
"
|
|
18
|
+
"default": "./dist/index.js"
|
|
17
19
|
},
|
|
18
20
|
"./oauth": {
|
|
21
|
+
"types": "./dist/oauth/index.d.ts",
|
|
19
22
|
"import": "./dist/oauth/index.js",
|
|
20
|
-
"
|
|
23
|
+
"default": "./dist/oauth/index.js"
|
|
21
24
|
},
|
|
22
25
|
"./signin": {
|
|
26
|
+
"types": "./dist/signin/index.d.ts",
|
|
23
27
|
"import": "./dist/signin/index.js",
|
|
24
|
-
"
|
|
28
|
+
"default": "./dist/signin/index.js"
|
|
25
29
|
},
|
|
26
30
|
"./account": {
|
|
31
|
+
"types": "./dist/account/index.d.ts",
|
|
27
32
|
"import": "./dist/account/index.js",
|
|
28
|
-
"
|
|
33
|
+
"default": "./dist/account/index.js"
|
|
29
34
|
},
|
|
30
35
|
"./auth-js": {
|
|
36
|
+
"types": "./dist/auth/index.d.ts",
|
|
31
37
|
"import": "./dist/auth/index.js",
|
|
32
|
-
"
|
|
38
|
+
"default": "./dist/auth/index.js"
|
|
33
39
|
},
|
|
34
40
|
"./auth-native": {
|
|
41
|
+
"types": "./dist/auth/index.rn.d.ts",
|
|
35
42
|
"import": "./dist/auth/index.rn.js",
|
|
36
|
-
"
|
|
43
|
+
"default": "./dist/auth/index.rn.js"
|
|
37
44
|
}
|
|
38
45
|
},
|
|
39
46
|
"files": [
|
|
@@ -57,7 +64,7 @@
|
|
|
57
64
|
"firebase": "^12.7.0",
|
|
58
65
|
"@react-native-firebase/app": ">=18.0.0",
|
|
59
66
|
"@react-native-firebase/auth": ">=18.0.0",
|
|
60
|
-
"@sudobility/di": "^1.5.
|
|
67
|
+
"@sudobility/di": "^1.5.69",
|
|
61
68
|
"@sudobility/types": "^1.9.68",
|
|
62
69
|
"@tanstack/react-query": "^5.0.0"
|
|
63
70
|
},
|
|
@@ -74,7 +81,7 @@
|
|
|
74
81
|
},
|
|
75
82
|
"devDependencies": {
|
|
76
83
|
"@eslint/js": "^9.0.0",
|
|
77
|
-
"@sudobility/di": "^1.5.
|
|
84
|
+
"@sudobility/di": "^1.5.69",
|
|
78
85
|
"@sudobility/types": "^1.9.68",
|
|
79
86
|
"@tanstack/react-query": "^5.80.7",
|
|
80
87
|
"@types/bun": "^1.2.8",
|