fix interactive login
This commit is contained in:
Родитель
6153d3a870
Коммит
af44747e04
|
@ -359,7 +359,7 @@ function withInteractiveWithAuthResponse(options) {
|
|||
if (error) {
|
||||
return reject(error);
|
||||
}
|
||||
interactiveOptions.username = tokenResponse.userId;
|
||||
interactiveOptions.userName = tokenResponse.userId;
|
||||
interactiveOptions.authorizationScheme = tokenResponse.tokenType;
|
||||
try {
|
||||
creds = new deviceTokenCredentials_1.DeviceTokenCredentials(interactiveOptions.clientId, interactiveOptions.domain, interactiveOptions.userName, interactiveOptions.tokenAudience, interactiveOptions.environment, interactiveOptions.tokenCache);
|
||||
|
|
|
@ -455,7 +455,7 @@ export async function withInteractiveWithAuthResponse(options?: InteractiveLogin
|
|||
if (error) {
|
||||
return reject(error);
|
||||
}
|
||||
interactiveOptions.username = tokenResponse.userId;
|
||||
interactiveOptions.userName = tokenResponse.userId;
|
||||
interactiveOptions.authorizationScheme = tokenResponse.tokenType;
|
||||
try {
|
||||
creds = new DeviceTokenCredentials(interactiveOptions.clientId, interactiveOptions.domain, interactiveOptions.userName,
|
||||
|
|
Загрузка…
Ссылка в новой задаче