@appocus/auth-react-router 0.3.0 → 0.3.2
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/dist/client.d.ts +19 -0
- package/dist/esm/client.js +19 -0
- package/package.json +9 -2
package/dist/client.d.ts
ADDED
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser-safe entry point for @appocus/auth-react-router.
|
|
3
|
+
*
|
|
4
|
+
* Does NOT include middleware.ts or the route factories that depend on
|
|
5
|
+
* @zauru-sdk/services (which pulls in @remix-run/node at runtime).
|
|
6
|
+
* Those server-only exports remain accessible via the default entry point in
|
|
7
|
+
* SSR / Node.js environments.
|
|
8
|
+
*/
|
|
9
|
+
export * from "./authenticated-fetch.js";
|
|
10
|
+
export * from "./oauth-authorize-url.js";
|
|
11
|
+
export * from "./reauth-constants.js";
|
|
12
|
+
export * from "./reauth-popup.client.js";
|
|
13
|
+
export * from "./auth-shell-layout.js";
|
|
14
|
+
export * from "./redirect-if-authenticated.js";
|
|
15
|
+
export * from "./route-types.js";
|
|
16
|
+
export * from "./runtime-config.js";
|
|
17
|
+
export * from "./routes/callback.js";
|
|
18
|
+
export * from "./routes/login-popup.js";
|
|
19
|
+
export * from "./routes/reauth-popup-done.js";
|
|
@@ -0,0 +1,19 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Browser-safe entry point for @appocus/auth-react-router.
|
|
3
|
+
*
|
|
4
|
+
* Does NOT include middleware.ts or the route factories that depend on
|
|
5
|
+
* @zauru-sdk/services (which pulls in @remix-run/node at runtime).
|
|
6
|
+
* Those server-only exports remain accessible via the default entry point in
|
|
7
|
+
* SSR / Node.js environments.
|
|
8
|
+
*/
|
|
9
|
+
export * from "./authenticated-fetch.js";
|
|
10
|
+
export * from "./oauth-authorize-url.js";
|
|
11
|
+
export * from "./reauth-constants.js";
|
|
12
|
+
export * from "./reauth-popup.client.js";
|
|
13
|
+
export * from "./auth-shell-layout.js";
|
|
14
|
+
export * from "./redirect-if-authenticated.js";
|
|
15
|
+
export * from "./route-types.js";
|
|
16
|
+
export * from "./runtime-config.js";
|
|
17
|
+
export * from "./routes/callback.js";
|
|
18
|
+
export * from "./routes/login-popup.js";
|
|
19
|
+
export * from "./routes/reauth-popup-done.js";
|
package/package.json
CHANGED
|
@@ -1,11 +1,18 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@appocus/auth-react-router",
|
|
3
|
-
"version": "0.3.
|
|
3
|
+
"version": "0.3.2",
|
|
4
4
|
"description": "OAuth login flow building blocks for Appocus React Router apps: middlewares, OAuth URL builder, authenticated fetch with reauth popup, and route factories for /login, /logout, /login-popup, /callback and the reauth-popup-done page.",
|
|
5
5
|
"main": "./dist/esm/index.js",
|
|
6
6
|
"module": "./dist/esm/index.js",
|
|
7
7
|
"types": "./dist/index.d.ts",
|
|
8
8
|
"type": "module",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"browser": "./dist/esm/client.js",
|
|
12
|
+
"import": "./dist/esm/index.js",
|
|
13
|
+
"default": "./dist/esm/index.js"
|
|
14
|
+
}
|
|
15
|
+
},
|
|
9
16
|
"publishConfig": {
|
|
10
17
|
"access": "public",
|
|
11
18
|
"registry": "https://registry.npmjs.org/"
|
|
@@ -38,5 +45,5 @@
|
|
|
38
45
|
"sonner": "^2.0.7",
|
|
39
46
|
"typescript": "^5.1.6"
|
|
40
47
|
},
|
|
41
|
-
"gitHead": "
|
|
48
|
+
"gitHead": "dabafd40914d3d0dd6fcd39f3490c074659a4309"
|
|
42
49
|
}
|