How to use ACE addon.authenticate(true)

Hi Team,

We have used nodejs and have developed our addon. We went through the below document

  1. As mentioned in the document we are using “type”: “jwt”,“alg”: “HS256” in the authentication of atlassian-connect.json
  2. We added apiMigrations": {“gdpr”: true, “context-qsh”: true } in the atlassian-connect.json
  3. We have installed npm i -g atlassian-connect-express
  4. Now we tried adding addon.authenticate(true) in the endpoints and we are getting addon undefined error

Is there any dependency to be included. Please help us in resolving it