sst 3.0.27 → 3.0.29
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/auth/handler.d.ts +1 -2
- package/dist/aws/auth.d.ts +9 -0
- package/dist/aws/auth.js +12 -0
- package/package.json +2 -1
package/dist/auth/handler.d.ts
CHANGED
|
@@ -3,7 +3,7 @@ import { Adapter } from "./adapter/adapter.js";
|
|
|
3
3
|
import { JWTPayload } from "jose";
|
|
4
4
|
import { SessionBuilder } from "./session.js";
|
|
5
5
|
import { Hono } from "hono/tiny";
|
|
6
|
-
interface OnSuccessResponder<T extends {
|
|
6
|
+
export interface OnSuccessResponder<T extends {
|
|
7
7
|
type: any;
|
|
8
8
|
properties: any;
|
|
9
9
|
}> {
|
|
@@ -55,4 +55,3 @@ export declare function AuthHandler<Providers extends Record<string, Adapter<any
|
|
|
55
55
|
};
|
|
56
56
|
};
|
|
57
57
|
}): Hono<import("hono").Env, import("hono/types").BlankSchema, "/">;
|
|
58
|
-
export {};
|
|
@@ -0,0 +1,9 @@
|
|
|
1
|
+
import { Handler } from "aws-lambda";
|
|
2
|
+
import { Adapter } from "../auth/adapter/adapter.js";
|
|
3
|
+
import { AuthHandler } from "../auth/handler.js";
|
|
4
|
+
import { SessionBuilder, createSessionBuilder } from "../auth/session.js";
|
|
5
|
+
export declare namespace auth {
|
|
6
|
+
type Issuer = import("openid-client").Issuer;
|
|
7
|
+
function authorizer<Providers extends Record<string, Adapter<any>>, Sessions extends SessionBuilder, Result>(...args: Parameters<typeof AuthHandler<Providers, Sessions, Result>>): Handler<any, any>;
|
|
8
|
+
const sessions: typeof createSessionBuilder;
|
|
9
|
+
}
|
package/dist/aws/auth.js
ADDED
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
import { AuthHandler } from "../auth/handler.js";
|
|
2
|
+
import { createSessionBuilder } from "../auth/session.js";
|
|
3
|
+
import { handle, streamHandle } from "hono/aws-lambda";
|
|
4
|
+
export var auth;
|
|
5
|
+
(function (auth) {
|
|
6
|
+
function authorizer(...args) {
|
|
7
|
+
const hono = AuthHandler(...args);
|
|
8
|
+
return (process.env.SST_LIVE ? handle(hono) : streamHandle(hono));
|
|
9
|
+
}
|
|
10
|
+
auth.authorizer = authorizer;
|
|
11
|
+
auth.sessions = createSessionBuilder;
|
|
12
|
+
})(auth || (auth = {}));
|
package/package.json
CHANGED
|
@@ -3,7 +3,7 @@
|
|
|
3
3
|
"name": "sst",
|
|
4
4
|
"type": "module",
|
|
5
5
|
"sideEffects": false,
|
|
6
|
-
"version": "3.0.
|
|
6
|
+
"version": "3.0.29",
|
|
7
7
|
"main": "./dist/index.js",
|
|
8
8
|
"exports": {
|
|
9
9
|
".": "./dist/index.js",
|
|
@@ -38,6 +38,7 @@
|
|
|
38
38
|
},
|
|
39
39
|
"dependencies": {
|
|
40
40
|
"@aws-sdk/client-lambda": "3.478.0",
|
|
41
|
+
"@tsconfig/node20": "^20.1.4",
|
|
41
42
|
"aws4fetch": "^1.0.18",
|
|
42
43
|
"jose": "5.2.3",
|
|
43
44
|
"openid-client": "5.6.4"
|