Is your feature request related to a problem? Please describe.
Currently the OidcSecurityService.checkAuth() is recommended to be called in the AppComponent, which is a sensible default.
However I would prefer to have an option to call it during app initialization (with a provider for APP_INITIALIZER).
Describe the solution you'd like
I would like to have an optional possibility to run the auth check during the app initialization phase.
Describe alternatives you've considered
Just use the code above in my apps.
Additional context
I am aware that this is mostly a convenience functionality.
Due to this I am more that willing to contribute the necessary code, if this feature is an acceptable addition and there is agreement on the API.
Is your feature request related to a problem? Please describe. Currently the
OidcSecurityService.checkAuth()
is recommended to be called in the AppComponent, which is a sensible default. However I would prefer to have an option to call it during app initialization (with a provider for APP_INITIALIZER).Describe the solution you'd like I would like to have an optional possibility to run the auth check during the app initialization phase.
e.g.
Describe alternatives you've considered Just use the code above in my apps.
Additional context I am aware that this is mostly a convenience functionality. Due to this I am more that willing to contribute the necessary code, if this feature is an acceptable addition and there is agreement on the API.