# Auth0-spa-js or auth0-angular for an angular SPA?

**URL:** <https://community.auth0.com/t/auth0-spa-js-or-auth0-angular-for-an-angular-spa/60961>\
**Category:** Get Help\
**Created:** [April 12, 2021, 11:49am UTC](https://community.auth0.com/t/auth0-spa-js-or-auth0-angular-for-an-angular-spa/60961 "2021-04-12T11:49:37Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![JTN](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jtn/32/12805_2.png) [@JTN](https://community.auth0.com/u/JTN)\
**Post date:** [April 12, 2021, 11:49am UTC](https://community.auth0.com/t/auth0-spa-js-or-auth0-angular-for-an-angular-spa/60961/1 "2021-04-12T11:49:37Z")

</div>

Does anyone know the differences between

1. the quick-start guide which uses “@auth0/auth0-angular”  
versus
2. the ‘Auth0 Single Page App SDK’ guide, which uses @auth0/auth0-spa-js?

Does #1 just use #2 under the hood? If not, which is preferred for an Angular SPA and why?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 12, 2021, 11:53am UTC](https://community.auth0.com/t/auth0-spa-js-or-auth0-angular-for-an-angular-spa/60961/2 "2021-04-12T11:53:43Z")

</div>

Hey there!

The first one utilizes the integration of the [Auth0 Angular SDK](https://github.com/auth0/auth0-angular) into an Angular application created using the Angular CLI. This sample is a companion to the [Auth0 Angular SDK Quickstart](https://auth0.com/docs/quickstart/spa/angular).

While the second one is Auth0 SDK for Single Page Applications using [Authorization Code Grant Flow with PKCE](https://auth0.com/docs/api-auth/tutorials/authorization-code-grant-pkce).

---

<div class="post-metadata">

**Author:** ![JTN](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jtn/32/12805_2.png) [@JTN](https://community.auth0.com/u/JTN)\
**Post date:** [April 12, 2021, 12:07pm UTC](https://community.auth0.com/t/auth0-spa-js-or-auth0-angular-for-an-angular-spa/60961/3 "2021-04-12T12:07:55Z")

</div>

> [@konrad.sopala](#):
>
> ation of the [Auth0 Angular SDK](https://github.com/auth0/auth0-angular) into an Angular application created using the Angular CLI. This sample i

Appreciate the response, but you repeated the setup to my question without answering it. Which is preferred for an Angular SPA, and why?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 12, 2021, 12:11pm UTC](https://community.auth0.com/t/auth0-spa-js-or-auth0-angular-for-an-angular-spa/60961/4 "2021-04-12T12:11:24Z")

</div>

For SPAs, auth0-spa-js: [GitHub - auth0/auth0-spa-js: Auth0 authentication for Single Page Applications (SPA) with PKCE](https://github.com/auth0/auth0-spa-js).

To give you more context, our Angular SDK was there for quite long but in the meantime analysing different usecases + SPA authentication & authorization scenarios we came up with auth0-spa-js

---

<div class="post-metadata">

**Author:** ![JTN](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jtn/32/12805_2.png) [@JTN](https://community.auth0.com/u/JTN)\
**Post date:** [April 12, 2021, 12:32pm UTC](https://community.auth0.com/t/auth0-spa-js-or-auth0-angular-for-an-angular-spa/60961/5 "2021-04-12T12:32:41Z")

</div>

Awesome, thanks. Do you happen to know if there is a plan to update the Angular quickstart to use this library?

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [April 12, 2021, 12:37pm UTC](https://community.auth0.com/t/auth0-spa-js-or-auth0-angular-for-an-angular-spa/60961/6 "2021-04-12T12:37:03Z")

</div>

As of now there’s no ETA for that. If we have any precise plans I’ll let you know!

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [April 27, 2021, 12:37pm UTC](https://community.auth0.com/t/auth0-spa-js-or-auth0-angular-for-an-angular-spa/60961/7 "2021-04-27T12:37:42Z")

</div>

This topic was automatically closed 15 days after the last reply. New replies are no longer allowed.
