Error Causing Application to Crash: "Failed to Get JWT Signing Key Error: unable to get local issuer certificate"

Problem statement

Intermittently users of an application are getting the following error. When this happens, the application crashes and the users have to restart the application and log in again.

Failed to Get JWT Signing Key Error: unable to get local issuer certificate
at TLSSocket.onConnectSecure (node:_tls_wrap:1530:34)
at TLSSocket.emit (node:events:526:28)
at TLSSocket.emit (node:domain:475:12)
at TLSSocket._finishInit (node:_tls_wrap:944:8)
at ssl.onhandshakedone (node:_tls_wrap:725:12)

What is the reason for this intermittent behavior?

Cause

The users of this application were on a network that was performing Deep Packet Inspection on all outgoing traffic, including Auth0 related requests. Once a policy was enforced to ignore Auth0 traffic, the issue resolved itself.

Solution

Check network settings, in particular any features configured that would be interfering with Auth0-related traffic.