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
Authorization Code Flow for Single Page Applications: Implementation of the Fetch Client in the Browser #1144
Authorization Code Flow for Single Page Applications: Implementation of the Fetch Client in the Browser #1144
Conversation
…ion-code-flow-browser-fetch
…ion-code-flow-browser-fetch
…ion-code-flow-browser-fetch
…ion-code-flow-browser-fetch
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.
LGTM besides making the actual network calls more specific (per your reminder comment)
…ion-code-flow-browser-fetch
…ion-code-flow-browser-fetch
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.
lgtm. Address any more comments and close.
* @param headers | ||
* @param body | ||
*/ | ||
async sendGetRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<T> { |
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.
🔥 🔥 🔥 🚀
} | ||
|
||
async sendPostRequestAsync<T>(url: string, options?: NetworkRequestOptions): Promise<T> { | ||
return this.sendRequestAsync(url, "POST", options); |
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.
Can we use the enum here also?
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.
Updated in PR #1149.
…browser-fetch Authorization Code Flow for Single Page Applications: Implementation of the Fetch Client in the Browser
This PR implements the fetch client for asynchronous network requests in the browser library for MSAL.js. This network client will be used for endpoint discovery and code-token exchange.
Please review PR #1140 before this PR.