@versini/auth0-react-thin 2.24.1 → 2.25.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 +1 -1
- package/dist/auth0-context.d.ts +2 -8
- package/dist/auth0-context.d.ts.map +1 -1
- package/dist/auth0-react.cjs.js +1 -1
- package/dist/auth0-react.cjs.js.map +1 -1
- package/dist/auth0-react.esm.js +1 -1
- package/dist/auth0-react.esm.js.map +1 -1
- package/dist/auth0-react.js +26 -26
- package/dist/auth0-react.js.map +1 -1
- package/dist/auth0-react.min.js +1 -1
- package/dist/auth0-react.min.js.map +1 -1
- package/package.json +4 -4
- package/src/auth0-context.tsx +2 -12
package/package.json
CHANGED
|
@@ -1,8 +1,8 @@
|
|
|
1
1
|
{
|
|
2
2
|
"author": "Auth0",
|
|
3
3
|
"name": "@versini/auth0-react-thin",
|
|
4
|
-
"version": "2.
|
|
5
|
-
"description": "Unofficial slim fork of @auth0/auth0-react@2.
|
|
4
|
+
"version": "2.25.0",
|
|
5
|
+
"description": "Unofficial slim fork of @auth0/auth0-react@2.25.0 — bundle-size build, not affiliated with Auth0/Okta. See @versini/auth0-thin.",
|
|
6
6
|
"keywords": [
|
|
7
7
|
"auth0",
|
|
8
8
|
"fork",
|
|
@@ -32,9 +32,9 @@
|
|
|
32
32
|
"react-dom": "^16.11.0 || ^17 || ^18 || ~19.0.1 || ~19.1.2 || ^19.2.1"
|
|
33
33
|
},
|
|
34
34
|
"dependencies": {
|
|
35
|
-
"@auth0/auth0-spa-js": "^2.
|
|
35
|
+
"@auth0/auth0-spa-js": "^2.25.0"
|
|
36
36
|
},
|
|
37
|
-
"forkedFrom": "@auth0/auth0-react@2.
|
|
37
|
+
"forkedFrom": "@auth0/auth0-react@2.25.0",
|
|
38
38
|
"publishConfig": {
|
|
39
39
|
"access": "public"
|
|
40
40
|
}
|
package/src/auth0-context.tsx
CHANGED
|
@@ -1,5 +1,4 @@
|
|
|
1
1
|
import {
|
|
2
|
-
GetTokenSilentlyOptions,
|
|
3
2
|
GetTokenWithPopupOptions,
|
|
4
3
|
IdToken,
|
|
5
4
|
LogoutOptions as SPALogoutOptions,
|
|
@@ -7,7 +6,6 @@ import {
|
|
|
7
6
|
PopupConfigOptions,
|
|
8
7
|
RedirectLoginResult,
|
|
9
8
|
User,
|
|
10
|
-
GetTokenSilentlyVerboseResponse,
|
|
11
9
|
RedirectLoginOptions as SPARedirectLoginOptions,
|
|
12
10
|
type Auth0Client,
|
|
13
11
|
RedirectConnectAccountOptions,
|
|
@@ -47,7 +45,7 @@ export interface Auth0ContextInterface<TUser extends User = User>
|
|
|
47
45
|
*
|
|
48
46
|
* If refresh tokens are used, the token endpoint is called directly with the
|
|
49
47
|
* 'refresh_token' grant. If no refresh token is available to make this call,
|
|
50
|
-
* the SDK will only fall back to using an iframe to the '/authorize' URL if
|
|
48
|
+
* the SDK will only fall back to using an iframe to the '/authorize' URL if
|
|
51
49
|
* the `useRefreshTokensFallback` setting has been set to `true`. By default this
|
|
52
50
|
* setting is `false`.
|
|
53
51
|
*
|
|
@@ -60,15 +58,7 @@ export interface Auth0ContextInterface<TUser extends User = User>
|
|
|
60
58
|
* Note that in all cases, falling back to an iframe requires access to
|
|
61
59
|
* the `auth0` cookie.
|
|
62
60
|
*/
|
|
63
|
-
getAccessTokenSilently:
|
|
64
|
-
(
|
|
65
|
-
options: GetTokenSilentlyOptions & { detailedResponse: true }
|
|
66
|
-
): Promise<GetTokenSilentlyVerboseResponse>;
|
|
67
|
-
(options?: GetTokenSilentlyOptions): Promise<string>;
|
|
68
|
-
(options: GetTokenSilentlyOptions): Promise<
|
|
69
|
-
GetTokenSilentlyVerboseResponse | string
|
|
70
|
-
>;
|
|
71
|
-
};
|
|
61
|
+
getAccessTokenSilently: Auth0Client['getTokenSilently'];
|
|
72
62
|
|
|
73
63
|
/**
|
|
74
64
|
* ```js
|