Adrián Mouly
08/20/2021, 2:12 AM...
requestContext: {
accountId: 'xxx',
apiId: 'xxx',
authorizer: { lambda: [Object] },
domainName: 'xxx',
...
As you can see, there is an object authorizer
which has a child `lambda`… the object inside lambda
it’s totally fine, it’s exactly what I expect to receive.
The problem is, apparently this lambda
object doesn’t exists on TS interface APIGatewayProxyEventV2
. As you can see here, this is the interface definition:
...
requestContext: {
accountId: string;
apiId: string;
authorizer?: {
jwt: {
claims: { [name: string]: string | number | boolean | string[] };
scopes: string[];
};
} | undefined;
domainName: string;
domainPrefix: string;
...
Apparently the interface APIGatewayProxyEventV2
only supports jwt
, but not lambda
? anybody else had this issue?thdxr
08/20/2021, 2:53 PMthdxr
08/20/2021, 2:53 PMthdxr
08/20/2021, 2:53 PMAdrián Mouly
08/20/2021, 7:33 PMAdrián Mouly
08/20/2021, 7:33 PMAdrián Mouly
08/20/2021, 7:33 PMAdrián Mouly
08/20/2021, 7:34 PMthdxr
08/20/2021, 8:52 PMAdrián Mouly
08/31/2021, 7:52 PM@types
.Adrián Mouly
08/31/2021, 7:53 PM@types/aws-lambda
.Adrián Mouly
08/31/2021, 7:54 PMAdrián Mouly
08/31/2021, 7:54 PMthdxr
08/31/2021, 7:55 PMthdxr
08/31/2021, 7:55 PMAdrián Mouly
08/31/2021, 7:55 PMAdrián Mouly
08/31/2021, 7:55 PMAdrián Mouly
08/31/2021, 7:55 PMAdrián Mouly
08/31/2021, 7:55 PMthdxr
08/31/2021, 7:55 PMAdrián Mouly
08/31/2021, 7:55 PM