alexandrtovmach / react-microsoft-login

Microsoft services authorization with React.
https://alexandrtovmach.github.io/react-microsoft-login
MIT License
80 stars 38 forks source link

I want graphScope. but illegal type.d.ts. #53

Closed nakawankuma closed 4 years ago

nakawankuma commented 4 years ago

Steps to reproduce: made code.

const msalProps  : MicrosoftLoginProps= {
    clientId : msalConfig.auth.clientId,
    authCallback : authHandler,
    graphScopes : ['User.Read', 'Group.Read.All']
}

<MicrosoftLogin {...msalProps} />}

Actual result: build error. TypeScript error in C:/src/wankuma/reactsite2/src/jsx/manage/admin/AdminSigninBox.tsx(48,9): Type '[string, string]' is not assignable to type '[string]'. Types of property 'length' are incompatible. Type '2' is not assignable to type '1'. TS2322

Expected behavior: Use Group.Read.All on sign in screen of MS.

nakawankuma commented 4 years ago

54