# Does Okta offer support for integrating authentication in Angular 16 applications using standalone components?

**URL:** <https://devforum.okta.com/t/does-okta-offer-support-for-integrating-authentication-in-angular-16-applications-using-standalone-components/26090>\
**Category:** Questions\
**Tags:** angular, authjs\
**Created:** [December 14, 2023, 8:51am UTC](https://devforum.okta.com/t/does-okta-offer-support-for-integrating-authentication-in-angular-16-applications-using-standalone-components/26090 "2023-12-14T08:51:05Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Ankita07](https://avatars.discourse-cdn.com/v4/letter/a/57b2e6/32.png) [@Ankita07](https://devforum.okta.com/u/Ankita07)\
**Post date:** [December 14, 2023, 8:51am UTC](https://devforum.okta.com/t/does-okta-offer-support-for-integrating-authentication-in-angular-16-applications-using-standalone-components/26090/1 "2023-12-14T08:51:05Z")

</div>

I am currently working on an Angular 16 application where I intend to implement Okta authentication alongside Angular Material components. The specific version of Okta I am using is okta-angular 6.1.0 and okta-auth-js 7.5.0.

Below I’ve attached a snapshot for the same error we’re facing while upgrading okta to 6.1.0.  
Does Okta offer support for integrating authentication in Angular 16 applications using standalone components?

Are there any specific considerations or limitations when integrating Okta authentication in an Angular 16 app, particularly when using Angular Material components and Okta version 6?

Are there any known best practices or documentation available for seamless integration of Okta authentication in an Angular 16 application environment similar to mine?

 ![Error_Console](https://global.discourse-cdn.com/oktadev/original/2X/6/68c04907ee17dfcddb7b3a79d4321b0e0537a55c.png)

---

<div class="post-metadata">

**Author:** ![alisaduncan](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/alisaduncan/32/3429_2.png) [@alisaduncan](https://devforum.okta.com/u/alisaduncan)\
**Post date:** [December 14, 2023, 3:12pm UTC](https://devforum.okta.com/t/does-okta-offer-support-for-integrating-authentication-in-angular-16-applications-using-standalone-components/26090/2 "2023-12-14T15:12:52Z")

</div>

Hi there @Ankita07 !

The latest okta-angular and okta-auth-js libraries definitely work with standalone, although we do have a little more work to make the okta-angular library module-less for better ergonomics.

Here’s a standalone example using latest Okta and Angular v17 (but it doesn’t have Angular Material, although I don’t anticipate problems there). A blog post and updated quickstart are forthcoming.

> **[GitHub - alisaduncan/okta-angular-standalone-example: Example standalone...](https://github.com/alisaduncan/okta-angular-standalone-example)**
>
> Example standalone Angular + Okta application. Contribute to alisaduncan/okta-angular-standalone-example development by creating an account on GitHub.

Based on first glance at the errors, it appears like it’s an imports or providers issues. Would you mind sharing your main.ts app configuration (feel free to redact your Okta issuer and clientid configs)?

Also, I’ll link another devforum post on this topic, as there may be overlap and updates posted to it:

> [@ERROR Error: Okta config is not provided at Object.create OktaAuth \[as useFactory\]](https://devforum.okta.com/t/error-error-okta-config-is-not-provided-at-object-create-oktaauth-as-usefactory/25870):
>
> Hello Everyone, i try to load Okta config and i get this error: ERROR Error: Okta config is not provided at Object.createOktaAuth [as useFactory] (okta-okta-angular.js:481:13) at Object.factory (core.mjs:6263:38) at core.mjs:6164:43 at runInInjectorProfilerContext (core.mjs:867:9) at R3Injector.hydrate (core.mjs:6163:17) at R3Injector.get (core.mjs:6033:33) at injectInjectorOnly (core.mjs:911:40) at ɵɵinject (core.mjs:917:42) at Object.OktaAuthStateService\_Factory [as factory] (okta-o…

Let us know how it goes!

---

<div class="post-metadata">

**Author:** ![alisaduncan](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/alisaduncan/32/3429_2.png) [@alisaduncan](https://devforum.okta.com/u/alisaduncan)\
**Post date:** [March 28, 2024, 5:13pm UTC](https://devforum.okta.com/t/does-okta-offer-support-for-integrating-authentication-in-angular-16-applications-using-standalone-components/26090/3 "2024-03-28T17:13:09Z")

</div>

Adding a link to a post about Okta authentication in stand-alone architecture

> **[Flexible Authentication Configurations in Angular Applications Using Okta](https://developer.okta.com/blog/2024/02/28/okta-authentication-angular)**
>
> Use the Okta Angular SDK to add flexible runtime configuration loading. Check out how to do so in a standalone Angular application!
