File tree Expand file tree Collapse file tree 2 files changed +9
-9
lines changed
web/serverless-microservices-web/src/utils Expand file tree Collapse file tree 2 files changed +9
-9
lines changed Original file line number Diff line number Diff line change @@ -3,8 +3,8 @@ window.authClientId = 'a298b04d-dbe2-4fc8-8191-b64c1fd287e2';
33window . authAuthority = 'https://wviriyab2c.b2clogin.com/wviriyab2c.onmicrosoft.com/B2C_1_default-signin' ;
44window . knownAuthority = 'wviriyab2c.b2clogin.com' ;
55window . redirectUri = 'http://localhost:4280' ;
6- window . loginScopes = [ 'https://wviriyab2c.onmicrosoft.com/a298b04d-dbe2-4fc8-8191-b64c1fd287e2 /rideshare' ] ;
7- window . apiScopes = [ 'https://wviriyab2c.onmicrosoft.com/a298b04d-dbe2-4fc8-8191-b64c1fd287e2 /rideshare' ] ;
6+ window . loginScopes = [ 'https://wviriyab2c.onmicrosoft.com/509b5353-3a44-4d09-85ed-64bf2e30ccb8 /rideshare' ] ;
7+ window . apiScopes = [ 'https://wviriyab2c.onmicrosoft.com/509b5353-3a44-4d09-85ed-64bf2e30ccb8 /rideshare' ] ;
88window . authEnabled = true ;
99
1010
Original file line number Diff line number Diff line change @@ -75,18 +75,18 @@ export class Authentication {
7575 getAccessToken ( ) {
7676 _tokenRequest . account = this . _publicClientApplication . getAccountByHomeId ( _accountId ) ;
7777 return this . _publicClientApplication . acquireTokenSilent ( _tokenRequest ) . then (
78- accessToken => {
79- if ( accessToken . accessToken === null || accessToken . accessToken === "" ) {
80- return this . _publicClientApplication . acquireTokenPopup ( _tokenRequest ) . then (
81- accessToken => {
82- return accessToken . accessToken ;
78+ response => {
79+ return response . accessToken ;
80+ } ,
81+ error => {
82+ return this . _publicClientApplication . acquireTokenPopup ( _tokenRequest ) . then (
83+ response => {
84+ return response . accessToken ;
8385 } ,
8486 err => {
8587 console . error ( err ) ;
8688 }
8789 ) ;
88- }
89- return accessToken . accessToken ;
9090 }
9191 ) ;
9292 }
You can’t perform that action at this time.
0 commit comments