MSAL - Angular universal ERROR BrowserAuthError: crypto_nonexistent: The crypto object or function is not available. Detail:Browser crypto, msCrypto, or msrCrypto interfaces not available.

Len Trinh 25 Reputation points
2023-05-29T17:19:28.9866667+00:00

Hi
I build the angular universal and MSAL B2C project and that has an error BrowserAuthError: crypto_nonexistent.
Thank you.

BrowserAuthError: crypto_nonexistent: The crypto object or function is not available. Detail:Browser crypto, msCrypto, or msrCrypto interfaces not available.

After run build:ssr and dev:ssr

"@azure/msal-angular": "^2.5.7",
"@azure/msal-browser": "2.37",
"@angular/core": "^15.0.2",
"@nguniversal/express-engine": "^15.2.1",
Azure App Service
Azure App Service
Azure App Service is a service used to create and deploy scalable, mission-critical web apps.
7,381 questions
Microsoft Entra ID
Microsoft Entra ID
A Microsoft Entra identity service that provides identity management and access control capabilities. Replaces Azure Active Directory.
20,572 questions
{count} votes