Skip to content

Commit a454f66

Browse files
Update auth.js
1 parent 0a61fb5 commit a454f66

File tree

1 file changed

+2
-0
lines changed
  • samples/file-picking/javascript-basic/scripts

1 file changed

+2
-0
lines changed

samples/file-picking/javascript-basic/scripts/auth.js

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,9 +11,11 @@ const app = new msal.PublicClientApplication(msalParams);
1111
async function getToken(command) {
1212

1313
let accessToken = "";
14+
let authParams = null;
1415

1516
switch (command.type) {
1617
case "SharePoint":
18+
case "SharePoint_SelfIssued":
1719
authParams = { scopes: [`${combine(command.resource, ".default")}`] };
1820
break;
1921
default:

0 commit comments

Comments
 (0)