A lightweight abstraction around adal.js for Azure AD authentication. Current stable version is 0.0.27. Provides a simple interface to obtain identity and access tokens, decode token claims, and retrieve user info. Supports both a real ADAL client and a dummy client for testing without Azure AD integration. Key differentiator: simplifies adal.js usage and offers a mock mode for development/testing. Release cadence is irregular.
npm install azure-auth-client-alphaNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Shows how to import AuthClient, build with config, get identity and access tokens, and handle results.
Wait for stable release or pin exact version and test thoroughly.
Use AuthClient.build(config) instead.
Use name, givenName, familyName in dummy identity config.
Use tenantId instead of tenantName.
Use AuthClient.build(config) instead.
Use require('azure-auth-client').default or add type:module to package.json.Ensure config includes clientType, clientId, tenantId (or tenantName), and domain.
Set clientType to 'ADAL' or 'DUMMY'.