If anyone is creating a web application built with NestJS that integrates with a Sage API, then we would like to propose using our open source lib for authentication.
This is our open source module that helps handle the authentication process. https://www.npmjs.com/package/nestjs-sage-id