1.As a quick step to isolate the issue, you may scale-up the App Service Plan and see if it helps.
( post test, you may scale-down, as required)
2.For handling JWT token, please see this: Azure App Service EasyAuth and Azure Active Directory Flows.
The built in authentication feature of App Service aka EasyAuth, implements the following Microsoft Entra ( Implicit Flow and Hybrid Flow).
3.By default, Node.js doesn’t reuse connections - and in terms of Azure and the way SNAT (Source Network Address Translation) works, we can effectively exhaust all of our available SNAT ports quickly if they’re not being reused.
You may try the approach outlined in this article: NodeJS with Keep-Alives and Connection Reuse ( Also, see the section Troubleshooting tools
to fetch more details about the issue)
4.Disable perMessageDeflate
in your server-side Node.js code.
Kindly let us know how it goes, I'll follow-up with you further.