-
Notifications
You must be signed in to change notification settings - Fork 353
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
Implicit return in auth0-spa-js/src/cache /cache-manager.ts when TS "noImplicitReturns" is set to true #1280
Comments
Hello @denniscalazans , I am not seeing the error you mentioned when I use Additionally, could you provide a code snippet demonstrating how you are using |
I'm having the same problem. We've implemented our own ICache, and configured that in Auth0.config.cache. That seems to cause it, reverting back and using the default 'memory' or 'localstorage' option does not cause this error to occur. |
I've set "noImplicitReturns": false in our own tsconfig.json to fix this but that is less than ideal |
Was caused by a direct import from The |
Checklist
Description
private async getCacheKeys(): Promise<string[] | undefined> {
if (this.keyManifest) {
return (await this.keyManifest.get())?.keys;
} else if (this.cache.allKeys) {
return this.cache.allKeys();
}
}
Reproduction
Install Auth0 library
npm i --save @auth0/auth0-spa-js
Make use of it
npm run build the angular project
Additional context
No response
auth0-spa-js version
2.1.3
Which framework are you using (React, Angular, Vue...)?
Angular
Framework version
17
Which browsers have you tested in?
Other
The text was updated successfully, but these errors were encountered: