Hans Song
04/22/2022, 12:08 AMconst authorizer = new HttpLambdaAuthorizer(
  "Authorizer",
  new sst.Function(this, "Authorizer", {})
);
const api = new sst.Api(this, "Api", {
  defaultAuthorizationType: sst.ApiAuthorizationType.CUSTOM,
  defaultAuthorizer: authorizer,
  ^
Type 'HttpLambdaAuthorizer' is not assignable to type 'HttpJwtAuthorizer | HttpLambdaAuthorizer | HttpUserPoolAuthorizer | undefined'.
  Property 'pool' is missing in type 'HttpLambdaAuthorizer' but required in type 'HttpUserPoolAuthorizer'.Frank
package.jsonHans Song
04/22/2022, 12:12 AM@aws-cdk/aws-apigatewayv2-authorizers-alpha with npm install rather than npx sst add-cdk
it went away with these versions
SST: 0.69.3
@aws-cdk/aws-apigatewayv2-authorizers-alpha: 2.15.0-alpha.0
aws-cdk-lib: 2.15.0Frank
@aws-cdk/aws-apigatewayv2-authorizers-alpha in ur package.json 😁Hans Song
04/22/2022, 6:59 AMapi1 and in api2, the authorizer is applied to both /private and /publicHans Song
04/22/2022, 7:00 AMFrank
handler to function in  api1 , ie.
const api1 = new sst.Api(app, "Api", {
  routes: {
    "GET /private": {
      function: "src/handlers/somehandler.handler"
      authorizationType: sst.ApiAuthorizationType.CUSTOM,
      authorizer,
    },
  }
})Frank
Hans Song
04/23/2022, 1:30 AM