I have a Angular 13 app I am working on and need to integrate Okta into it. I have followed every tutorial I can find out there and there seems to be a discrepancy in what is in @okta/okta-angular and @okta/okta-auth-js. When following the tutorials, I can get the sign in widget to show but nothing can happen because when I add oktaAuth to my login component and add it to the providers array I get runtime errors like:
core.mjs:6495 ERROR Error: Can’t resolve all parameters for e: (?).
or if I remove it from the providers array but add it in the constructor I get:
core.mjs:6495 ERROR Error: Uncaught (in promise): NullInjectorError: R3InjectorError(PagesModule)[e → e → e → e]:
NullInjectorError: No provider for e!
Without OktaAuth I am unable to call functions like signInAndRedirect().
So my question is am I missing something? Are the libraries incompatible with angular 13? I really just hope I’m missing something. I can post any code needed and I can also post the entire stack traces from the browser if that helps.
Thanks in advance for any help, This is a complicated subject.