You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
We're building a webpart for SharePoint 2016, and the older SPFX component framework has to use TypeScript 2.2.
I've been able to use the 'Auth0-spa-js' library for the more recent SPFX (up-to-date TypeScript).
But - have to instead use the older one.
Within the typings/Auth0Client.d.ts file, there is an error that's causing a compiler error - on older TypeScript.
Between v1.6.5 and v1.7.0, this was changed ...>
OLD >
getIdTokenClaims(options?: GetIdTokenClaimsOptions): Promise<IdToken>;
NEW >
getIdTokenClaims(options?: GetIdTokenClaimsOptions): Promise<import("./global").IdToken>;
If I change the TYPINGS file (manually) - then it works.
Describe the problem
We're building a webpart for SharePoint 2016, and the older SPFX component framework has to use TypeScript 2.2.
I've been able to use the 'Auth0-spa-js' library for the more recent SPFX (up-to-date TypeScript).
But - have to instead use the older one.
Within the typings/Auth0Client.d.ts file, there is an error that's causing a compiler error - on older TypeScript.
Between v1.6.5 and v1.7.0, this was changed ...>
OLD >
getIdTokenClaims(options?: GetIdTokenClaimsOptions): Promise<IdToken>;
NEW >
getIdTokenClaims(options?: GetIdTokenClaimsOptions): Promise<import("./global").IdToken>;
If I change the TYPINGS file (manually) - then it works.
Otherwise ;
Error - typescript - node_modules@auth0\auth0-spa-js\dist\typings\Auth0Client.d.ts(64,31): error TS1005: ',' expected.
Error - typescript - node_modules@auth0\auth0-spa-js\dist\typings\Auth0Client.d.ts(74,65): error TS1005: '>' expected.
Error - typescript - node_modules@auth0\auth0-spa-js\dist\typings\Auth0Client.d.ts(74,72): error TS1138: Parameter declaration expected.
Error - typescript - node_modules@auth0\auth0-spa-js\dist\typings\Auth0Client.d.ts(74,82): error TS1005: ';' expected.
Error - typescript - node_modules@auth0\auth0-spa-js\dist\typings\Auth0Client.d.ts(74,83): error TS1068: Unexpected token. A constructor, method, accessor, or property was expected.
Error - typescript - node_modules@auth0\auth0-spa-js\dist\typings\Auth0Client.d.ts(74,91): error TS1005: '=' expected.
Error - typescript - node_modules@auth0\auth0-spa-js\dist\typings\Auth0Client.d.ts(74,92): error TS1109: Expression expected.
Error - 'typescript' sub task errored after 910 ms
"TypeScript error(s) occurred."
Environment
**Version of
auth0-spa-js
used: v.16.5 - and v.1.7.0(have a working example in code - w/ v1.13.5 - after I manually change the TYPINGS file)
Which framework are you using, if applicable (Angular, React, etc):
SPFX v1.1
The text was updated successfully, but these errors were encountered: