I’ve gone through three different tutorials (one was a guy on YouTube), and cannot get an Angular front-end app working with Okta.
I found that the OktaAuthService is not a part of the @okta-angular npm package. By trial and error, I found that the last version of @okta-angular that contains the OktaAuthService was version 3, which does not work in the version of Angular I’m using. The @okta-angular package is in version 6 now, so it has been a while since this service was part of the package, and the tutorials have apparently not been updated to reflect the change.
Is there an angular front-end tutorial that works?
Hey there @RichH -
Sorry to hear about your struggles. What version of Angular are you using?
The Angular Quickstart in the Okta Developer docs should be fairly up-to-date. You can find the sample repo for this tutorial here
We also have tutorials for different frameworks and languages in the Okta Developer blog. I’m due to write an updated tutorial demonstrating stand-alone architecture though.
Feel free to post back here if you can’t find what you need. And feel free to comment on the tutorial if you run into issues.
Let us know how it goes!
I gave up on Angular and went to React. I found a tutorial that worked for React.