I am building an ASP.NET Core Angular app, which comes with an api-authorization.module that relies on angular-oauth2-oidc library for authorization logic. This module is used to connect the Angular app with ASP.NET Identity.
It works as expected on a single tab, but it requires a new login action whenever a new tab is opened.
I've found these resources on the subject, but can't find the imports they are talking about:
https://github.com/manfredsteyer/angular-oauth2-oidc/issues/321 https://manfredsteyer.github.io/angular-oauth2-oidc/docs/additional-documentation/configure-custom-oauthstorage.html
Specifically, I cannot find the OAuthModule that is mentioned both in Github thread jeroenheijmans, who is a collaborator on the library, and in official docs. For that reason, I cannot apply what seems the recommended fix for this issue, which is adding this to app.module.
providers: [
{ provide: OAuthStorage, useFactory: storageFactory }
]
Can anyone tell me how to solve this, or point me in the right direction?