This library will help to validate the Id Token and Auth Token.
Create the separate routes file (i.e auth.routes.js) and add the routes like below,
a. router.post('/verifyAuthToken', authorize.verifyAuthToken)
b. router.get('/verifyIdToken', authorize.verifyIdToken)
Execute the below command for build. - npm run build
Once Build succeed it will create the dist
folder.
Place the .npmrc file inside the dist folder.
Execute the below command for publish - npm publish