This repository has been archived by the owner. It is now read-only.
File tree Expand file tree Collapse file tree 3 files changed +6
-6
lines changed
Expand file tree Collapse file tree 3 files changed +6
-6
lines changed Original file line number Diff line number Diff line change 11
22/**
3- * Config object to be passed to Msal on creation.
3+ * Config object to be passed to MSAL on creation.
44 * For a full list of msal.js configuration parameters,
55 * visit https://azuread.github.io/microsoft-authentication-library-for-js/docs/msal/modules/_configuration_.html
6- * */
6+ * */
77const msalConfig = {
88 auth : {
99 clientId : "e760cab2-b9a1-4c0d-86fb-ff7084abd902" ,
@@ -27,4 +27,4 @@ const loginRequest = {
2727// Add here scopes for access token to be used at the API endpoints.
2828const tokenRequest = {
2929 scopes : apiConfig . b2cScopes , // e.g. ["https://fabrikamb2c.onmicrosoft.com/helloapi/demo.read"]
30- } ;
30+ } ;
Original file line number Diff line number Diff line change @@ -5,7 +5,7 @@ const myMSALObj = new Msal.UserAgentApplication(msalConfig);
55function signIn ( ) {
66 myMSALObj . loginPopup ( loginRequest )
77 . then ( loginResponse => {
8- console . log ( "Id_token acquired at: " + new Date ( ) . toString ( ) ) ;
8+ console . log ( "id_token acquired at: " + new Date ( ) . toString ( ) ) ;
99 console . log ( loginResponse ) ;
1010
1111 if ( myMSALObj . getAccount ( ) ) {
@@ -58,7 +58,7 @@ function passTokenToApi() {
5858 . then ( tokenResponse => {
5959 console . log ( "access_token acquired at: " + new Date ( ) . toString ( ) ) ;
6060 try {
61- logMessage ( "Request made to Web API:" )
61+ logMessage ( "Request made to Web API:" ) ;
6262 callApiWithAccessToken ( apiConfig . webApi , tokenResponse . accessToken ) ;
6363 } catch ( err ) {
6464 console . log ( err ) ;
Original file line number Diff line number Diff line change @@ -77,7 +77,7 @@ function passTokenToApi() {
7777 if ( ! accessToken ) {
7878 getTokenRedirect ( tokenRequest ) ;
7979 } else {
80- logMessage ( "Request made to Web API:" )
80+ logMessage ( "Request made to Web API:" ) ;
8181 try {
8282 callApiWithAccessToken ( apiConfig . webApi , accessToken ) ;
8383 } catch ( err ) {
You can’t perform that action at this time.
0 commit comments