@farm.js/auth0 0.1.0-beta.99 → 0.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 +2 -2
- package/dist/index.d.ts +2 -2
- package/dist/index.js +1 -1
- package/package.json +3 -3
package/README.md
CHANGED
|
@@ -2,10 +2,10 @@
|
|
|
2
2
|
|
|
3
3
|
Auth0 integration for Farm.js
|
|
4
4
|
|
|
5
|
-
|
|
5
|
+
See [Stability and Support](https://farmjs.dev/docs/stability) for what this package guarantees.
|
|
6
6
|
|
|
7
7
|
```bash
|
|
8
|
-
npm install @farm.js/auth0
|
|
8
|
+
npm install @farm.js/auth0
|
|
9
9
|
```
|
|
10
10
|
|
|
11
11
|
See the [Farm.js repository](https://github.com/farming-labs/farm.js) for documentation, examples, and support.
|
package/dist/index.d.ts
CHANGED
|
@@ -52,7 +52,7 @@ export declare function auth0(input?: Auth0IntegrationInput): import("@farm.js/c
|
|
|
52
52
|
clientId: string;
|
|
53
53
|
protectedRoutes: string[];
|
|
54
54
|
};
|
|
55
|
-
config: import("@farm.js/core").FarmIntegrationConfigDefinition<ResolvedAuth0Env, import("@farm.js/core").
|
|
55
|
+
config: import("@farm.js/core").FarmIntegrationConfigDefinition<ResolvedAuth0Env, import("@farm.js/core").FarmSchema | undefined>;
|
|
56
56
|
api: {
|
|
57
57
|
[x: string]: {
|
|
58
58
|
get: {
|
|
@@ -85,7 +85,7 @@ export declare function auth0(input?: Auth0IntegrationInput): import("@farm.js/c
|
|
|
85
85
|
documentNavigations: {
|
|
86
86
|
matcher: string[];
|
|
87
87
|
}[];
|
|
88
|
-
routes: import("@farm.js/core").FarmTypedIntegrationRoute<string, never, any, unknown, false, "GET", import("@farm.js/core").
|
|
88
|
+
routes: import("@farm.js/core").FarmTypedIntegrationRoute<string, never, any, unknown, false, "GET", import("@farm.js/core").FarmSchema | undefined>[];
|
|
89
89
|
middleware: {
|
|
90
90
|
matcher: string[];
|
|
91
91
|
handler(request: Request): Response | undefined;
|
package/dist/index.js
CHANGED
|
@@ -411,7 +411,7 @@ export function auth0(input = {}) {
|
|
|
411
411
|
const requestUrl = new URL(request.url);
|
|
412
412
|
const redirectUrl = new URL(loginPath, getOrigin(request, appBaseUrl));
|
|
413
413
|
redirectUrl.searchParams.set("returnTo", `${requestUrl.pathname}${requestUrl.search}`);
|
|
414
|
-
return Response.redirect(redirectUrl,
|
|
414
|
+
return Response.redirect(redirectUrl, 303); // 303 (See Other) mandates a GET on the GET-only login route regardless of the original method (RFC 7231 §6.4.4)
|
|
415
415
|
},
|
|
416
416
|
},
|
|
417
417
|
]
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@farm.js/auth0",
|
|
3
|
-
"version": "0.1.0
|
|
3
|
+
"version": "0.1.0",
|
|
4
4
|
"description": "Auth0 integration for Farm.js",
|
|
5
5
|
"license": "MIT",
|
|
6
6
|
"repository": {
|
|
@@ -29,8 +29,8 @@
|
|
|
29
29
|
"access": "public"
|
|
30
30
|
},
|
|
31
31
|
"dependencies": {
|
|
32
|
-
"@farm.js/
|
|
33
|
-
"@farm.js/
|
|
32
|
+
"@farm.js/core": "0.1.0",
|
|
33
|
+
"@farm.js/integration-utils": "0.1.0"
|
|
34
34
|
},
|
|
35
35
|
"scripts": {
|
|
36
36
|
"build": "node -e \"require('node:fs').rmSync('dist', { recursive: true, force: true })\" && tsc",
|