首页 > 解决方案 > Microsoft Teams TASK 模块 SSO 返回“未找到定义”错误

问题描述

从任务模块调用@microsoft/ teams -js 时Definition not found出现错误。msTeams.authentication.getAuthToken

return new Observable<any>(subscriber => {
      this.teamsService.authentication.getAuthToken({
        resources: ['https://graph.microsoft.com/openid',
          'https://graph.microsoft.com/user.read.all',
          'https://graph.microsoft.com/group.read.all',
          'https://graph.microsoft.com/groupmember.read.all'],
        successCallback: clientToken => {
          subscriber.next({ clientToken, type: this.authType });
          subscriber.complete();
        },
        failureCallback: reason => {
          subscriber.error(reason);
        }
      });
    });

标签: microsoft-teams

解决方案


推荐阅读