@versini/auth-provider 8.0.6 → 8.1.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/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