sst 2.25.1 → 2.25.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.
|
@@ -27,7 +27,17 @@ export declare function AuthHandler<Providers extends Record<string, Adapter<any
|
|
|
27
27
|
sessions?: Sessions;
|
|
28
28
|
clients: () => Promise<Record<string, string>>;
|
|
29
29
|
onAuthorize?: (event: APIGatewayProxyEventV2) => Promise<void | keyof Providers>;
|
|
30
|
-
onSuccess: (input: Result, response: OnSuccessResponder<SessionValue |
|
|
30
|
+
onSuccess: (input: Result, response: OnSuccessResponder<SessionValue | {
|
|
31
|
+
[key in keyof Sessions["$type"]]: {
|
|
32
|
+
type: key;
|
|
33
|
+
properties: Sessions["$type"][key];
|
|
34
|
+
};
|
|
35
|
+
}[keyof Sessions["$type"]]>) => Promise<ReturnType<OnSuccessResponder<SessionValue | {
|
|
36
|
+
[key in keyof Sessions["$type"]]: {
|
|
37
|
+
type: key;
|
|
38
|
+
properties: Sessions["$type"][key];
|
|
39
|
+
};
|
|
40
|
+
}[keyof Sessions["$type"]]>[keyof OnSuccessResponder<any>]>>;
|
|
31
41
|
onIndex?: (event: APIGatewayProxyEventV2) => Promise<APIGatewayProxyStructuredResultV2>;
|
|
32
42
|
onError?: (error: UnknownProviderError) => Promise<APIGatewayProxyStructuredResultV2 | undefined>;
|
|
33
43
|
}): (event: APIGatewayProxyEventV2, context: import("aws-lambda").Context) => Promise<APIGatewayProxyStructuredResultV2>;
|