Skip to content

Add documentation for acquireTokenInteractive in msal-node #7887

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 3 commits into
base: dev
Choose a base branch
from

Conversation

tnorling
Copy link
Collaborator

@tnorling tnorling commented Jul 1, 2025

Adds documentation for acquireTokenInteractive in msal-node and updates relevant FAQ entry

@Copilot Copilot AI review requested due to automatic review settings July 1, 2025 18:37
@tnorling tnorling requested review from sameerag, hectormmg, peterzenz and a team as code owners July 1, 2025 18:37
@github-actions github-actions bot added documentation Related to documentation. msal-node Related to msal-node package labels Jul 1, 2025
@tnorling tnorling mentioned this pull request Jul 1, 2025
Copy link

@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 adds documentation for the new acquireTokenInteractive API in MSAL Node and updates related samples and FAQs.

  • Introduces an acquireTokenInteractive section with code samples for PublicClientApplication
  • Refactors getAuthCodeUrl and acquireTokenByCode sections with consistent examples
  • Updates the FAQ to reference the new interactive flow API

Reviewed Changes

Copilot reviewed 2 out of 2 changed files in this pull request and generated 1 comment.

File Description
lib/msal-node/docs/request.md Added acquireTokenInteractive docs; updated code samples for auth-code flow
lib/msal-node/docs/faq.md Updated FAQ to acknowledge interactive flow support
Comments suppressed due to low confidence (3)

lib/msal-node/docs/request.md:43

  • [nitpick] Use a third-level header (###) for getAuthCodeUrl to match the surrounding section hierarchy.
## getAuthCodeUrl

lib/msal-node/docs/request.md:54

  • Add an import statement for ConfidentialClientApplication (e.g. import { ConfidentialClientApplication } from "@azure/msal-node";) so readers can run this snippet as-is.
const cca = new ConfidentialClientApplication({

lib/msal-node/docs/faq.md:42

  • Verify that the link anchor matches the header in request.md (likely #acquiretokeninteractive when rendered) to ensure the FAQ link resolves correctly.
Yes, there is an all-in-one `acquireTokenInteractive` API available for `PublicClientApplication` scenarios. Please read more about this API [here](./request.md#acquireTokenInteractive)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Related to documentation. msal-node Related to msal-node package
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants