@dloizides/auth-client 3.0.0 → 3.3.0

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.
@@ -1,4 +1,4 @@
1
- import { H as HttpClient, T as TokenResponse } from '../TokenResponse-CY1CaU2l.mjs';
1
+ import { H as HttpClient, T as TokenResponse } from '../TokenResponse-BkIDjenX.mjs';
2
2
 
3
3
  /**
4
4
  * OIDC discovery document fetcher.
@@ -1,4 +1,4 @@
1
- import { H as HttpClient, T as TokenResponse } from '../TokenResponse-CY1CaU2l.js';
1
+ import { H as HttpClient, T as TokenResponse } from '../TokenResponse-BkIDjenX.js';
2
2
 
3
3
  /**
4
4
  * OIDC discovery document fetcher.
package/dist/react.d.mts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { F as ForgotPasswordRequest, A as AuthApiClient, R as ResetPasswordRequest, a as AuthSessionInfo, b as AuthClient } from './AuthClient-BGr8L03W.mjs';
3
- import './TokenResponse-CY1CaU2l.mjs';
2
+ import { F as ForgotPasswordRequest, A as AuthApiClient, r as ResetPasswordRequest, j as AuthSessionInfo, b as AuthClient } from './AuthClient-3lu6Y1bY.mjs';
3
+ import './TokenResponse-BkIDjenX.mjs';
4
4
 
5
5
  interface UseForgotPasswordOptions extends Omit<UseMutationOptions<void, Error, ForgotPasswordRequest>, 'mutationFn'> {
6
6
  api: AuthApiClient;
package/dist/react.d.ts CHANGED
@@ -1,6 +1,6 @@
1
1
  import { UseMutationOptions, UseMutationResult, UseQueryOptions, UseQueryResult } from '@tanstack/react-query';
2
- import { F as ForgotPasswordRequest, A as AuthApiClient, R as ResetPasswordRequest, a as AuthSessionInfo, b as AuthClient } from './AuthClient-D95OMajD.js';
3
- import './TokenResponse-CY1CaU2l.js';
2
+ import { F as ForgotPasswordRequest, A as AuthApiClient, r as ResetPasswordRequest, j as AuthSessionInfo, b as AuthClient } from './AuthClient-Bb7N2shJ.js';
3
+ import './TokenResponse-BkIDjenX.js';
4
4
 
5
5
  interface UseForgotPasswordOptions extends Omit<UseMutationOptions<void, Error, ForgotPasswordRequest>, 'mutationFn'> {
6
6
  api: AuthApiClient;
package/package.json CHANGED
@@ -1,124 +1,124 @@
1
1
  {
2
- "name": "@dloizides/auth-client",
3
- "version": "3.0.0",
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
- }
2
+ "name": "@dloizides/auth-client",
3
+ "version": "3.3.0",
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"
35
17
  },
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
- }
18
+ "homepage": "https://github.com/openmindednewby/auth-client#readme",
19
+ "bugs": {
20
+ "url": "https://github.com/openmindednewby/auth-client/issues"
45
21
  },
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
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"
92
82
  },
93
- "expo-local-authentication": {
94
- "optional": true
83
+ "peerDependencies": {
84
+ "@tanstack/react-query": "^5.0.0",
85
+ "expo-local-authentication": "*",
86
+ "expo-secure-store": "*",
87
+ "react": ">=17.0.0"
95
88
  },
96
- "expo-secure-store": {
97
- "optional": true
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
+ }
98
102
  },
99
- "react": {
100
- "optional": true
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"
101
123
  }
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
124
  }