Browser Authentication Reference
Browser-based authentication for Azure services using the @azure/identity TypeScript SDK.
Overview
Browser applications require special credential types that handle OAuth redirects and popup windows. This reference covers InteractiveBrowserCredential, BrowserCustomizationOptions, and SPA authentication patterns.
Installation
bash
npm install @azure/identityNote: Browser credentials require a bundler (Vite, webpack, etc.) and won't work in Node.js.
InteractiveBrowserCredential
The primary credential for browser applications.
typescript
import { InteractiveBrowserCredential } from "@azure/identity";
const credential = new InteractiveBrowserCredential({