# Universal login and @auth0/auth0-spa-js vs @auth0/auth0-angular

**URL:** <https://community.auth0.com/t/universal-login-and-auth0-auth0-spa-js-vs-auth0-auth0-angular/124052>\
**Category:** Get Help\
**Tags:** new-universal-login-experience, login-experience\
**Created:** [January 3, 2024, 12:23pm UTC](https://community.auth0.com/t/universal-login-and-auth0-auth0-spa-js-vs-auth0-auth0-angular/124052 "2024-01-03T12:23:43Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![g.guedesdaluz](https://upload.wikimedia.org/wikipedia/commons/thumb/7/7c/User_font_awesome.svg/768px-User_font_awesome.svg.png) [@g.guedesdaluz](https://community.auth0.com/u/g.guedesdaluz)\
**Post date:** [January 3, 2024, 12:23pm UTC](https://community.auth0.com/t/universal-login-and-auth0-auth0-spa-js-vs-auth0-auth0-angular/124052/1 "2024-01-03T12:23:43Z")

</div>

I’m working on a project with Angular 13 that call a .Net API.

I managed to add the universal login an get a token from Auth0 using @auth0/auth0-angular, so the dashboard configuration is fine.

Searching in the documentation and guides I find some stuff using @auth0/auth0-spa-js and @auth0/auth0-angular, but I don’t know exactly wich one is better for my case.

Also, I don’t know exactly what to do after calling the login funtion and how to handle the callback from Auth0. I wanted some more complete code as example.

Thanks.

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [January 4, 2024, 12:51am UTC](https://community.auth0.com/t/universal-login-and-auth0-auth0-spa-js-vs-auth0-auth0-angular/124052/2 "2024-01-04T00:51:25Z")

</div>

Hello @g.guedesdaluz !

I think you’re on the right track using auth0-angular 🙂 auth0-spa-js is a more generic SDK which auth0-angular, auth0-react, etc. are built on top of.

> [@g.guedesdaluz](#):
>
> Also, I don’t know exactly what to do after calling the login funtion and how to handle the callback from Auth0. I wanted some more complete code as example.

I definitely recommend checking out the following tool which allows you to choose your own stack for a sample app:

> **[Full-Stack Code Samples](https://developer.auth0.com/resources/code-samples/full-stack)**
>
> Pick a frontend. Pick a backend. See how Auth0 integrates with a full-stack app of your choice.

---

<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:** [January 18, 2024, 12:51am UTC](https://community.auth0.com/t/universal-login-and-auth0-auth0-spa-js-vs-auth0-auth0-angular/124052/4 "2024-01-18T00:51:56Z")

</div>

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