---
title: "createMicrosoftAuthProvider"
source: "https://github.com/remix-run/remix/blob/main/packages/auth/src/lib/providers/microsoft.ts#L38"
---

# createMicrosoftAuthProvider

## Summary

Creates a Microsoft identity platform provider backed by the shared OIDC runtime.

## Signature

```ts
function createMicrosoftAuthProvider(
  options: MicrosoftAuthProviderOptions,
): OAuthProvider<MicrosoftAuthProfile, 'microsoft'>

```

## Parameters

### `options`

Microsoft client settings and optional tenant selection.

## Returns

An OAuth provider that can be passed to `startExternalAuth()` and `finishExternalAuth()`.