@bcrumbs.net/bc-shared 0.0.3 → 0.0.5
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/index.esm.js +60 -2876
- package/package.json +6 -8
- package/src/lib/services/auth/index.d.ts +0 -2
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@bcrumbs.net/bc-shared",
|
|
3
|
-
"version": "0.0.
|
|
3
|
+
"version": "0.0.5",
|
|
4
4
|
"keyword": [
|
|
5
5
|
"bcrumbs",
|
|
6
6
|
"bc-shared",
|
|
@@ -10,13 +10,11 @@
|
|
|
10
10
|
"name": "Ahmad Mhaish"
|
|
11
11
|
},
|
|
12
12
|
"peerDependencies": {
|
|
13
|
-
"
|
|
14
|
-
"react-
|
|
15
|
-
"
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
"jwt-decode": "^3.1.2",
|
|
19
|
-
"i18next-http-backend": "^1.3.2"
|
|
13
|
+
"react": "^18.0.0",
|
|
14
|
+
"react-dom": "^18.0.0",
|
|
15
|
+
"i18next": "^21.0.0",
|
|
16
|
+
"react-i18next": "^11.0.0",
|
|
17
|
+
"i18next-http-backend": "^1.0.0"
|
|
20
18
|
},
|
|
21
19
|
"module": "./index.esm.js",
|
|
22
20
|
"type": "module",
|
|
@@ -63,7 +63,6 @@ export declare const auth: {
|
|
|
63
63
|
* @param {string} encodedToken - base 64 token received from server and stored in local storage
|
|
64
64
|
* @returns {date | null} returns expiration date or null id expired props not found in decoded token
|
|
65
65
|
*/
|
|
66
|
-
getTokenExpirationDate(encodedToken: string): Date;
|
|
67
66
|
/**
|
|
68
67
|
*
|
|
69
68
|
* tell is token is expired (compared to now)
|
|
@@ -71,7 +70,6 @@ export declare const auth: {
|
|
|
71
70
|
* @param {string} encodedToken - base 64 token received from server and stored in local storage
|
|
72
71
|
* @returns {bool} returns true if expired else false
|
|
73
72
|
*/
|
|
74
|
-
isExpiredToken(encodedToken: string): boolean;
|
|
75
73
|
/**
|
|
76
74
|
* get user info from localstorage
|
|
77
75
|
*
|