File tree 2 files changed +3
-5
lines changed
samples/VanillaJSTestApp2.0/app/default
2 files changed +3
-5
lines changed Original file line number Diff line number Diff line change @@ -575,9 +575,7 @@ export class PublicClientApplication {
575
575
*/
576
576
public getAccountByUsername ( userName : string ) : IAccount {
577
577
const allAccounts = this . getAllAccounts ( ) ;
578
- return allAccounts . filter ( ( accountObj ) => {
579
- return accountObj . username === userName ;
580
- } ) [ 0 ] ;
578
+ return allAccounts . filter ( accountObj => accountObj . username === userName ) [ 0 ] ;
581
579
}
582
580
583
581
// #endregion
Original file line number Diff line number Diff line change @@ -40,11 +40,11 @@ function handleResponse(resp) {
40
40
async function signIn ( method ) {
41
41
signInType = isIE ? "loginRedirect" : method ;
42
42
if ( signInType === "loginPopup" ) {
43
- myMSALObj . loginPopup ( loginRequest ) . then ( handleResponse ) . catch ( function ( error ) {
43
+ return myMSALObj . loginPopup ( loginRequest ) . then ( handleResponse ) . catch ( function ( error ) {
44
44
console . log ( error ) ;
45
45
} ) ;
46
46
} else if ( signInType === "loginRedirect" ) {
47
- myMSALObj . loginRedirect ( loginRequest )
47
+ return myMSALObj . loginRedirect ( loginRequest )
48
48
}
49
49
}
50
50
You can’t perform that action at this time.
0 commit comments