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

Does anyone know the differences between

  1. the quick-start guide which uses “@auth0/auth0-angular”
  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?

Hey there!

The first one utilizes the integration of the Auth0 Angular SDK into an Angular application created using the Angular CLI. This sample is a companion to the Auth0 Angular SDK Quickstart.

While the second one is Auth0 SDK for Single Page Applications using Authorization Code Grant Flow with PKCE.

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

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

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

1 Like

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

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

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