-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
TokenCache typing problem #170
Labels
Comments
When using the above method Typescript infers This can be fixed by:
const cache = new TokenCache(tokenConfig, {
credentialsDir: 'credentialsDir',
accessTokenEndpoint: 'accessTokenEndpoint',
tokenInfoEndpoint: 'tokenInfoEndpoint',
grantType: OAuthGrantType.CLIENT_CREDENTIALS_GRANT
});
const oAuthConfig = {
credentialsDir: 'credentialsDir',
accessTokenEndpoint: 'accessTokenEndpoint',
tokenInfoEndpoint: 'tokenInfoEndpoint',
grantType: OAuthGrantType.CLIENT_CREDENTIALS_GRANT as OAuthGrantType.CLIENT_CREDENTIALS_GRANT,
};
|
One of the underlying problems, read here: microsoft/TypeScript#9489 |
ISO50
added a commit
that referenced
this issue
Jan 24, 2018
ISO50
added a commit
that referenced
this issue
Jan 24, 2018
ISO50
added a commit
that referenced
this issue
Jan 25, 2018
Fixed by #171 |
ISO50
added a commit
that referenced
this issue
Jan 30, 2018
ISO50
added a commit
that referenced
this issue
Jan 30, 2018
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
If initialising the
TokenCache
like:we currently get the following error:
which can be fixed via an explicitly typing:
However, that should not be necessary for the user. We have to investigate further why this problem occurs.
The text was updated successfully, but these errors were encountered: