Shubham Sinha
06/07/2022, 4:56 PM{
  "status": 403,
  "headers": {
    "content-length": "23",
    "content-type": "application/json"
  },
  "body": "{\"message\":\"Forbidden\"}"
}Frank
We are using the `login` prop to state that we want our users to login with their email.Frank
Frank
Shubham Sinha
06/08/2022, 5:51 AMShubham Sinha
06/08/2022, 1:47 PMnew Api(stack, "Api", {
  authorizers: {
    pool: {
      type: "user_pool",
      userPool: {
        id: auth.userPoolId,
      },
    },
  },
  defaults: {
    authorizer: "pool",
  },
  routes: {
    "GET /": "src/lambda.main",
  },
});Shubham Sinha
06/08/2022, 1:47 PM