-
Notifications
You must be signed in to change notification settings - Fork 2.7k
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
base: dev
Are you sure you want to change the base?
Conversation
There was a problem hiding this 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 forPublicClientApplication
- Refactors
getAuthCodeUrl
andacquireTokenByCode
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 (
###
) forgetAuthCodeUrl
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)
Adds documentation for acquireTokenInteractive in msal-node and updates relevant FAQ entry