Module '"../../../../node_modules/@okta/okta-angular/okta-angular"' has no exported member 'OktaAuthService'
I have a problem implementing Okta in my Angular project
CodePudding user response:
I found the solution. The problem was a confliction of versions between angular and Okta; Just downgraded Okta version like this:
"@okta/okta-angular": "^3.2.2", "@okta/okta-signin-widget": "^5.10.1",
CodePudding user response:
I'm guessing you were using Okta Angular 4.0 when you encountered this error. In 4.0, OktaAuthService
was replaced with OktaAuth
from the okta-auth-js library. See the Okta Angular 3.x to 4.x migration guide for changes.
I migrated one of our Angular samples this week. This PR will help you see the changes necessary.