@mcp-z/oauth-microsoft
    Preparing search index...

    Function createDcrRouter

    @mcp-z/oauth-microsoft - Shared Microsoft OAuth implementation

    Provides OAuth authentication:

    • Loopback OAuth (RFC 8252) - Server-managed, file-based tokens
    • Device Code flow (RFC 8628) - For headless/limited-input scenarios
    • Create DCR Router with OAuth 2.0 endpoints (self-hosted mode)

      For external mode (Auth0/Stitch), don't call this function - no router needed. The server code should check DcrConfig.mode and only call this for 'self-hosted'.

      Parameters

      Returns Router

      Express router with OAuth endpoints