---
title: createMicrosoftAuthProvider
source: https://github.com/remix-run/remix/blob/remix@3.0.0-beta.3/packages/auth/src/lib/providers/microsoft.ts#L36
---

# createMicrosoftAuthProvider

## Summary

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

## Signature

```ts
function createMicrosoftAuthProvider(
  options: MicrosoftAuthProviderOptions,
): OAuthProvider<MicrosoftAuthProfile, "microsoft", OAuthStandardTokens>;

```

## Parameters

### `options`

Microsoft client settings and optional tenant selection.

## Returns

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