@versini/auth-provider 8.0.6 → 8.1.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.
package/README.md CHANGED
@@ -1,6 +1,6 @@
1
1
  # @versini/auth-provider
2
2
 
3
- High-level React authentication components & hooks supporting password (PKCE Code) and Passkey (WebAuthn) flows, with optional Auth0 integration. Built on the primitives from `@versini/auth-common`.
3
+ High-level React authentication components & hooks supporting password (PKCE Code) and Passkey (WebAuthn) flows. Built on the primitives from `@versini/auth-common`.
4
4
 
5
5
  ## Install
6
6
 
@@ -23,7 +23,6 @@ Peer deps: `react` (>= 19) & `react-dom`.
23
23
  - Passkey (WebAuthn) registration & authentication
24
24
  - Silent access token refresh with refresh token rotation
25
25
  - Role / permission helpers (re-export of `isGranted` & `AUTH_TYPES`)
26
- - Opt-in Auth0 provider wrapper
27
26
  - Local storage isolation per `clientId`
28
27
  - Timezone & build metadata banner injection (in distributed bundles)
29
28
 
@@ -81,22 +80,6 @@ await registeringForPasskey();
81
80
  await loginWithPasskey();
82
81
  ```
83
82
 
84
- ## Auth0 Integration
85
-
86
- ```tsx
87
- import { Auth0Provider } from "@versini/auth-provider/auth0";
88
-
89
- <Auth0Provider
90
- domain="YOUR_DOMAIN"
91
- clientId="YOUR_CLIENT_ID"
92
- authorizationParams={{ redirect_uri: window.location.origin }}
93
- >
94
- <App />
95
- </Auth0Provider>;
96
- ```
97
-
98
- All Auth hooks still come from `@versini/auth-provider/hooks`.
99
-
100
83
  ## Public API Summary
101
84
 
102
85
  - `<AuthProvider />` – Core provider. Props:
@@ -109,8 +92,6 @@ All Auth hooks still come from `@versini/auth-provider/hooks`.
109
92
  - `useAuth()` – Returns `AuthContextProps`:
110
93
  - state: `isLoading`, `isAuthenticated`, `user`, `logoutReason`, `authenticationType`
111
94
  - methods: `login(username, password)`, `logout()`, `getAccessToken()`, `getIdToken()`, `registeringForPasskey()`, `loginWithPasskey()`
112
- - Auth0:
113
- - `<Auth0Provider />` – Wraps children and injects Auth0 context + shared `useAuth` hook wiring.
114
95
  - Re-exports from `@versini/auth-common`:
115
96
  - `AUTH_TYPES`, `isGranted`
116
97
 
@@ -132,7 +113,7 @@ On logout or token invalidation all related keys are purged atomically (`removeS
132
113
 
133
114
  ## Bundling Notes
134
115
 
135
- Entry files are emitted without hashes (`index.js`, `auth.js`, `auth0.js`, `hooks.js`) for stable package exports; internal split chunks are hashed (`chunks/[name].[hash].js`). This is intentional for library consumption stability.
116
+ Entry files are emitted without hashes (`index.js`, `auth.js`, `hooks.js`) for stable package exports; internal split chunks are hashed (`chunks/[name].[hash].js`). This is intentional for library consumption stability.
136
117
 
137
118
  ## TypeScript
138
119
 
package/dist/auth.js CHANGED
@@ -6,13 +6,13 @@ import { HEADERS as ie, decodeToken as ve, JWT as T, API_TYPE as M, AUTH_TYPES a
6
6
  import De, { useSyncExternalStore as Le, useCallback as S, useEffect as ce, createContext as $e, useContext as Ke, useReducer as Ye, useRef as Ge } from "react";
7
7
  import { AuthHookContext as He } from "./AuthHookContext-C9a2AwWZ.js";
8
8
  /*!
9
- @versini/auth-provider v8.0.6
9
+ @versini/auth-provider v8.1.0
10
10
  © 2025 gizmette.com
11
11
  */
12
12
  try {
13
13
  window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
14
- version: "8.0.6",
15
- buildTime: "11/23/2025 02:59 PM EST",
14
+ version: "8.1.0",
15
+ buildTime: "11/26/2025 08:59 PM EST",
16
16
  homepage: "https://github.com/aversini/auth-client",
17
17
  license: "MIT"
18
18
  });
package/dist/hooks.js CHANGED
@@ -1,13 +1,13 @@
1
1
  import { useContext as o } from "react";
2
2
  import { AuthHookContext as e } from "./AuthHookContext-C9a2AwWZ.js";
3
3
  /*!
4
- @versini/auth-provider v8.0.6
4
+ @versini/auth-provider v8.1.0
5
5
  © 2025 gizmette.com
6
6
  */
7
7
  try {
8
8
  window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
9
- version: "8.0.6",
10
- buildTime: "11/23/2025 02:59 PM EST",
9
+ version: "8.1.0",
10
+ buildTime: "11/26/2025 08:59 PM EST",
11
11
  homepage: "https://github.com/aversini/auth-client",
12
12
  license: "MIT"
13
13
  });
package/dist/index.js CHANGED
@@ -1,12 +1,12 @@
1
1
  import { AUTH_TYPES as r, isGranted as t } from "@versini/auth-common";
2
2
  /*!
3
- @versini/auth-provider v8.0.6
3
+ @versini/auth-provider v8.1.0
4
4
  © 2025 gizmette.com
5
5
  */
6
6
  try {
7
7
  window.__VERSINI_AUTH_CLIENT__ || (window.__VERSINI_AUTH_CLIENT__ = {
8
- version: "8.0.6",
9
- buildTime: "11/23/2025 02:59 PM EST",
8
+ version: "8.1.0",
9
+ buildTime: "11/26/2025 08:59 PM EST",
10
10
  homepage: "https://github.com/aversini/auth-client",
11
11
  license: "MIT"
12
12
  });
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@versini/auth-provider",
3
- "version": "8.0.6",
3
+ "version": "8.1.0",
4
4
  "license": "MIT",
5
5
  "author": "Arno Versini",
6
6
  "publishConfig": {
@@ -20,9 +20,6 @@
20
20
  "./auth": {
21
21
  "import": "./dist/auth.js"
22
22
  },
23
- "./auth0": {
24
- "import": "./dist/auth0.js"
25
- },
26
23
  "./hooks": {
27
24
  "import": "./dist/hooks.js"
28
25
  }
@@ -54,12 +51,11 @@
54
51
  "react-dom": ">=19.0.0"
55
52
  },
56
53
  "dependencies": {
57
- "@auth0/auth0-react": "2.4.0",
58
54
  "@simplewebauthn/browser": "13.1.2",
59
55
  "@versini/auth-common": "4.6.0",
60
56
  "@versini/ui-hooks": "5.0.1",
61
57
  "jose": "6.1.0",
62
58
  "uuid": "11.1.0"
63
59
  },
64
- "gitHead": "08365bc6d187fe1379f4f86fb6ec730cc9129ddf"
60
+ "gitHead": "8475e3e37f86825e8931bab3327e7d5d65c8b354"
65
61
  }
package/dist/auth0.d.ts DELETED
@@ -1,6 +0,0 @@
1
- import * as react_jsx_runtime from 'react/jsx-runtime';
2
- import { Auth0ProviderOptions } from '@auth0/auth0-react';
3
-
4
- declare const Auth0Provider: ({ children, domain, clientId, ...rest }: Auth0ProviderOptions) => react_jsx_runtime.JSX.Element;
5
-
6
- export { Auth0Provider };