@dloizides/auth-client 2.1.0 → 3.2.1

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/package.json CHANGED
@@ -1,124 +1,124 @@
1
- {
2
- "name": "@dloizides/auth-client",
3
- "version": "2.1.0",
4
- "description": "Realm-aware Keycloak/OIDC client for the dloizides.com portfolio. PKCE flow, token refresh, storage abstraction. Adapters for browser cookie, secure storage (mobile), and biometric gating. Hooks for sessions and password reset.",
5
- "keywords": [
6
- "keycloak",
7
- "oidc",
8
- "pkce",
9
- "auth",
10
- "dloizides"
11
- ],
12
- "author": "dloizides",
13
- "license": "MIT",
14
- "repository": {
15
- "type": "git",
16
- "url": "https://github.com/openmindednewby/auth-client.git"
17
- },
18
- "homepage": "https://github.com/openmindednewby/auth-client#readme",
19
- "bugs": {
20
- "url": "https://github.com/openmindednewby/auth-client/issues"
21
- },
22
- "main": "./dist/index.js",
23
- "module": "./dist/index.mjs",
24
- "types": "./dist/index.d.ts",
25
- "exports": {
26
- ".": {
27
- "require": {
28
- "types": "./dist/index.d.ts",
29
- "default": "./dist/index.js"
30
- },
31
- "import": {
32
- "types": "./dist/index.d.mts",
33
- "default": "./dist/index.mjs"
34
- }
35
- },
36
- "./react": {
37
- "require": {
38
- "types": "./dist/react.d.ts",
39
- "default": "./dist/react.js"
40
- },
41
- "import": {
42
- "types": "./dist/react.d.mts",
43
- "default": "./dist/react.mjs"
44
- }
45
- },
46
- "./oidc": {
47
- "require": {
48
- "types": "./dist/oidc/index.d.ts",
49
- "default": "./dist/oidc/index.js"
50
- },
51
- "import": {
52
- "types": "./dist/oidc/index.d.mts",
53
- "default": "./dist/oidc/index.mjs"
54
- }
55
- }
56
- },
57
- "files": [
58
- "dist",
59
- "README.md",
60
- "CHANGELOG.md"
61
- ],
62
- "sideEffects": false,
63
- "engines": {
64
- "node": ">=18.0.0"
65
- },
66
- "scripts": {
67
- "build": "rimraf dist && tsup",
68
- "build:watch": "tsup --watch",
69
- "test": "jest",
70
- "test:watch": "jest --watch",
71
- "test:coverage": "jest --coverage",
72
- "lint": "eslint src --ext .ts,.tsx",
73
- "lint:fix": "eslint src --ext .ts,.tsx --fix",
74
- "typecheck": "tsc --noEmit",
75
- "clean": "rimraf dist",
76
- "security:audit": "npm audit --audit-level=high",
77
- "deps:outdated": "npm outdated || exit 0",
78
- "deps:unused": "npx depcheck --ignores \"@types/jest,@types/node,@types/react,@types/react-dom,@testing-library/jest-dom,jest-environment-jsdom,rimraf\"",
79
- "deps:licenses": "npx license-checker --onlyAllow \"MIT;Apache-2.0;ISC;BSD-2-Clause;BSD-3-Clause;0BSD;Unlicense;CC0-1.0\"",
80
- "deps:health": "npm run deps:outdated && npm run deps:unused",
81
- "prepublishOnly": "npm run clean && npm run build && npm run test"
82
- },
83
- "peerDependencies": {
84
- "@tanstack/react-query": "^5.0.0",
85
- "expo-local-authentication": "*",
86
- "expo-secure-store": "*",
87
- "react": ">=17.0.0"
88
- },
89
- "peerDependenciesMeta": {
90
- "@tanstack/react-query": {
91
- "optional": true
92
- },
93
- "expo-local-authentication": {
94
- "optional": true
95
- },
96
- "expo-secure-store": {
97
- "optional": true
98
- },
99
- "react": {
100
- "optional": true
101
- }
102
- },
103
- "devDependencies": {
104
- "@tanstack/react-query": "^5.0.0",
105
- "@testing-library/dom": "^10.0.0",
106
- "@testing-library/react": "^16.0.0",
107
- "@types/jest": "^29.5.0",
108
- "@types/node": "^20.19.32",
109
- "@types/react": "^18.3.0",
110
- "@types/react-dom": "^18.3.0",
111
- "@typescript-eslint/eslint-plugin": "^7.0.0",
112
- "@typescript-eslint/parser": "^7.0.0",
113
- "eslint": "^8.57.0",
114
- "eslint-plugin-sonarjs": "^4.0.3",
115
- "jest": "^29.7.0",
116
- "jest-environment-jsdom": "^29.7.0",
117
- "react": "^18.3.0",
118
- "react-dom": "^18.3.0",
119
- "rimraf": "^5.0.0",
120
- "ts-jest": "^29.1.0",
121
- "tsup": "^8.0.0",
122
- "typescript": "^5.4.0"
123
- }
124
- }
1
+ {
2
+ "name": "@dloizides/auth-client",
3
+ "version": "3.2.1",
4
+ "description": "Auth client for the dloizides.com portfolio. v3 adds BffAuthClient — the same-origin client for a per-app Backend-For-Frontend. Also: realm-aware Keycloak/OIDC (PKCE/ROPC), token refresh, storage adapters, hooks for sessions and password reset.",
5
+ "keywords": [
6
+ "keycloak",
7
+ "oidc",
8
+ "pkce",
9
+ "auth",
10
+ "dloizides"
11
+ ],
12
+ "author": "dloizides",
13
+ "license": "MIT",
14
+ "repository": {
15
+ "type": "git",
16
+ "url": "https://github.com/openmindednewby/auth-client.git"
17
+ },
18
+ "homepage": "https://github.com/openmindednewby/auth-client#readme",
19
+ "bugs": {
20
+ "url": "https://github.com/openmindednewby/auth-client/issues"
21
+ },
22
+ "main": "./dist/index.js",
23
+ "module": "./dist/index.mjs",
24
+ "types": "./dist/index.d.ts",
25
+ "exports": {
26
+ ".": {
27
+ "require": {
28
+ "types": "./dist/index.d.ts",
29
+ "default": "./dist/index.js"
30
+ },
31
+ "import": {
32
+ "types": "./dist/index.d.mts",
33
+ "default": "./dist/index.mjs"
34
+ }
35
+ },
36
+ "./react": {
37
+ "require": {
38
+ "types": "./dist/react.d.ts",
39
+ "default": "./dist/react.js"
40
+ },
41
+ "import": {
42
+ "types": "./dist/react.d.mts",
43
+ "default": "./dist/react.mjs"
44
+ }
45
+ },
46
+ "./oidc": {
47
+ "require": {
48
+ "types": "./dist/oidc/index.d.ts",
49
+ "default": "./dist/oidc/index.js"
50
+ },
51
+ "import": {
52
+ "types": "./dist/oidc/index.d.mts",
53
+ "default": "./dist/oidc/index.mjs"
54
+ }
55
+ }
56
+ },
57
+ "files": [
58
+ "dist",
59
+ "README.md",
60
+ "CHANGELOG.md"
61
+ ],
62
+ "sideEffects": false,
63
+ "engines": {
64
+ "node": ">=18.0.0"
65
+ },
66
+ "scripts": {
67
+ "build": "rimraf dist && tsup",
68
+ "build:watch": "tsup --watch",
69
+ "test": "jest",
70
+ "test:watch": "jest --watch",
71
+ "test:coverage": "jest --coverage",
72
+ "lint": "eslint src --ext .ts,.tsx",
73
+ "lint:fix": "eslint src --ext .ts,.tsx --fix",
74
+ "typecheck": "tsc --noEmit",
75
+ "clean": "rimraf dist",
76
+ "security:audit": "npm audit --audit-level=high",
77
+ "deps:outdated": "npm outdated || exit 0",
78
+ "deps:unused": "npx depcheck --ignores \"@types/jest,@types/node,@types/react,@types/react-dom,@testing-library/jest-dom,jest-environment-jsdom,rimraf\"",
79
+ "deps:licenses": "npx license-checker --onlyAllow \"MIT;Apache-2.0;ISC;BSD-2-Clause;BSD-3-Clause;0BSD;Unlicense;CC0-1.0\"",
80
+ "deps:health": "npm run deps:outdated && npm run deps:unused",
81
+ "prepublishOnly": "npm run clean && npm run build && npm run test"
82
+ },
83
+ "peerDependencies": {
84
+ "@tanstack/react-query": "^5.0.0",
85
+ "expo-local-authentication": "*",
86
+ "expo-secure-store": "*",
87
+ "react": ">=17.0.0"
88
+ },
89
+ "peerDependenciesMeta": {
90
+ "@tanstack/react-query": {
91
+ "optional": true
92
+ },
93
+ "expo-local-authentication": {
94
+ "optional": true
95
+ },
96
+ "expo-secure-store": {
97
+ "optional": true
98
+ },
99
+ "react": {
100
+ "optional": true
101
+ }
102
+ },
103
+ "devDependencies": {
104
+ "@tanstack/react-query": "^5.0.0",
105
+ "@testing-library/dom": "^10.0.0",
106
+ "@testing-library/react": "^16.0.0",
107
+ "@types/jest": "^29.5.0",
108
+ "@types/node": "^20.19.32",
109
+ "@types/react": "^18.3.0",
110
+ "@types/react-dom": "^18.3.0",
111
+ "@typescript-eslint/eslint-plugin": "^7.0.0",
112
+ "@typescript-eslint/parser": "^7.0.0",
113
+ "eslint": "^8.57.0",
114
+ "eslint-plugin-sonarjs": "^4.0.3",
115
+ "jest": "^29.7.0",
116
+ "jest-environment-jsdom": "^29.7.0",
117
+ "react": "^18.3.0",
118
+ "react-dom": "^18.3.0",
119
+ "rimraf": "^5.0.0",
120
+ "ts-jest": "~29.1.0",
121
+ "tsup": "^8.0.0",
122
+ "typescript": "^5.4.0"
123
+ }
124
+ }