Nice work Younes Laaroussi. My Thoughts on a quick glance. It would be great in your example, if you could modify to create the passage object as a global object instead of local (example middleware) since every call to passage sdk ends up creating a call to url fetch json web key sets which is an overheard for high performance systems.
Hi Godwin! Thanks for your feedback, but this SDK (and the official Node SDK) only fetches JWK sets when the authenticateRoute() function is called, so creating a new Passage object doesn't cause any overhead.
Godwin Pinto
Principal Engineer | Software Architect | Cloud Computing| Security | Open Source
Nice work Younes Laaroussi. My Thoughts on a quick glance. It would be great in your example, if you could modify to create the passage object as a global object instead of local (example middleware) since every call to passage sdk ends up creating a call to url fetch json web key sets which is an overheard for high performance systems.