Ready to post? First, try searching for your answer.
Hello Community, I am using “@auth0/auth0-angular”: “2.2.3” in my standalone angular project. I am trying to get refresh token as below
this.authService.getAccessTokenSilently({
ignoreCache: true
}).subscribe(refreshToken => {
console.log(refreshToken);
});
but it throws below exception.
Error: src/app/auth/custom-auth-service.service.ts:26:9 - error TS2769: No overload matches this call.
Overload 1 of 2, ‘(options: GetTokenSilentlyOptions & { detailedResponse: true; }): Observable’, gave the following error.
Object literal may only specify known properties, and ‘ignoreCache’ does not exist in type ‘GetTokenSilentlyOptions & { detailedResponse: true; }’.
Overload 2 of 2, ‘(options?: GetTokenSilentlyOptions | undefined): Observable’, gave the following error.
Object literal may only specify known properties, and ‘ignoreCache’ does not exist in type ‘GetTokenSilentlyOptions’.
26 ignoreCache: true
~~~~~~~~~~~