Skip to content

Commit

Permalink
Refactor powerPlatformAPIAuthentication function
Browse files Browse the repository at this point in the history
  • Loading branch information
amitjoshi committed Oct 23, 2024
1 parent 958a713 commit f5bde70
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/common/services/AuthenticationProvider.ts
Original file line number Diff line number Diff line change
Expand Up @@ -301,6 +301,8 @@ export async function powerPlatformAPIAuthentication(
): Promise<string> {
let accessToken = "";
try {

ppapiEndpoint = ppapiEndpoint.split("/powerpages")[0];
const PPAPI_WEBSITES_SERVICE_SCOPE_DEFAULT = `${ppapiEndpoint}${SCOPE_OPTION_DEFAULT}`;
let session = await vscode.authentication.getSession(
PROVIDER_ID,
Expand Down

0 comments on commit f5bde70

Please sign in to comment.