Skip to content

Conversation

shenj
Copy link
Contributor

@shenj shenj commented Sep 15, 2025

This PR merges branch custom-auth/jiashen/jit into dev. Summary:

  • Support JIT experience during Sign-In in msal-browser/custom_auth flows
  • Add .github Copilot instructions and custom_auth instructions files

This PR merges branch custom-auth/jiashen/jit into dev.
Summary:
- Support JIT experience during Sign-In in msal-browser/custom_auth
flows
- Add .github Copilot instructions and custom_auth instructions files
@shenj shenj requested a review from a team as a code owner September 15, 2025 11:19
@Copilot Copilot AI review requested due to automatic review settings September 15, 2025 11:19
Copy link
Contributor

@Copilot Copilot AI left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Pull Request Overview

This PR implements support for JIT (Just-In-Time) authentication method registration during sign-in flows in the msal-browser custom_auth module. The implementation adds functionality to handle scenarios where users need to register additional authentication methods after successful password authentication.

Key Changes

  • Added new JIT client and related infrastructure for handling authentication method registration
  • Integrated JIT support into existing sign-in, sign-up, and reset password flows
  • Added comprehensive test coverage for the new JIT functionality including integration tests

Reviewed Changes

Copilot reviewed 72 out of 72 changed files in this pull request and generated 2 comments.

Show a summary per file
File Description
Test files (*.spec.ts) Added mock implementations for registerApiClient and jitClient, updated existing tests to include JIT parameter passing
SignInClient.ts Enhanced to handle JIT required errors and return appropriate results for authentication method registration
State files Updated to include jitClient parameter and handle JIT transitions between states
Result files Modified to support new JIT state types and type guards
Index exports Added new JIT-related types and classes to public API

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant