How to solve authorizer issue in Serverless framework 3?

Viewed 262

When I use Serverless framework 2, I defined authorizer like the below way.

sample:
  handler: sample.handler
  events:
    - http:
        path: sample
        method: get
        cors: true
        authorizer: verify-token

But It's not supported in Serverless framework 3. Now, I am getting the below error.

Incorrect type. Expected "Aws.HttpAuthorizer".yaml-schema: Serverless Framework Configuration

I looked at their deprecated doc But I don't find the solution. How can resolve this issue?

0 Answers
Related