# \#auth0-angular

**URL:** https://community.auth0.com/tag/auth0-angular/369.md

[Latest](https://community.auth0.com/latest.md) · [Categories](https://community.auth0.com/categories.md) · [Tags](https://community.auth0.com/tags.md)

---

## [Issues migrating from auth0-js to auth0-angular or auth0-spa-js](https://community.auth0.com/t/issues-migrating-from-auth0-js-to-auth0-angular-or-auth0-spa-js/168048)

<div class="topic-metadata">

**Author:** [@sifloww](https://community.auth0.com/u/sifloww)\
**Replies:** 1\
**Last updated:** [January 15, 2025, 4:12pm UTC](https://community.auth0.com/t/issues-migrating-from-auth0-js-to-auth0-angular-or-auth0-spa-js/168048 "2025-01-15T16:12:13Z")

</div>

Auth0 Community post Issues migrating from auth0-js to auth0-angularor auth0-spa-js We have a large monorepo running multiple Angular apps, on Angular v18.04 (soon to be upgraded to Angular v19). For years we have bee…

---

## [Missing Refresh Token Error When Using getAccessTokenSilently With Params](https://community.auth0.com/t/missing-refresh-token-error-when-using-getaccesstokensilently-with-params/148654)

<div class="topic-metadata">

**Author:** [@jquerijero](https://community.auth0.com/u/jquerijero)\
**Replies:** 1\
**Last updated:** [October 8, 2024, 11:32pm UTC](https://community.auth0.com/t/missing-refresh-token-error-when-using-getaccesstokensilently-with-params/148654 "2024-10-08T23:32:43Z")

</div>

Ready to post? :mag: First, try searching for your answer. This code works: const options = { detailedResponse: true }; return this.auth.getAccessTokenSilently(options); This code gives me Missing Refresh Token err…

---

## [Angular: Where is the documentation for auth\_config.json](https://community.auth0.com/t/angular-where-is-the-documentation-for-auth-config-json/138351)

<div class="topic-metadata">

**Author:** [@seref.arikan](https://community.auth0.com/u/seref.arikan)\
**Replies:** 1\
**Last updated:** [October 3, 2024, 2:09pm UTC](https://community.auth0.com/t/angular-where-is-the-documentation-for-auth-config-json/138351 "2024-10-03T14:09:56Z")

</div>

I cannot find the documentation that lists what fields should/could be in auth\_config.js and what they do. In particular I am confused about what “apiUri” and “appUri” settings do. These exist in the Angular examples bu…

---

## [Authentication is lost after page refresh even with custom domain](https://community.auth0.com/t/authentication-is-lost-after-page-refresh-even-with-custom-domain/136448)

<div class="topic-metadata">

**Author:** [@maiksfd](https://community.auth0.com/u/maiksfd)\
**Replies:** 2\
**Last updated:** [June 17, 2024, 5:56pm UTC](https://community.auth0.com/t/authentication-is-lost-after-page-refresh-even-with-custom-domain/136448 "2024-06-17T17:56:24Z")

</div>

Hey, i recently started using Auth0 for my new project with Angular. As many others i stumbled over the refesh problem and found this FAQ: Why is authentication lost after refreshing my single page application? In ther…

---

## [Auto login users to their mobile browser - New Universal Login - Angular SDK](https://community.auth0.com/t/auto-login-users-to-their-mobile-browser-new-universal-login-angular-sdk/123696)

<div class="topic-metadata">

**Author:** [@demoauth0](https://community.auth0.com/u/demoauth0)\
**Replies:** 6\
**Last updated:** [January 17, 2024, 11:54am UTC](https://community.auth0.com/t/auto-login-users-to-their-mobile-browser-new-universal-login-angular-sdk/123696 "2024-01-17T11:54:57Z")

</div>

Hi, We are developing a new SPA web application in Angular with Auth0 New Universal Login. We have a requirement where we need allow the logged in users to to continue their sessions on their mobile browsers without en…

---

## [Auth0 Angular how to not use localstorage](https://community.auth0.com/t/auth0-angular-how-to-not-use-localstorage/120510)

<div class="topic-metadata">

**Author:** [@Stanman](https://community.auth0.com/u/Stanman)\
**Replies:** 1\
**Last updated:** [November 8, 2023, 11:24pm UTC](https://community.auth0.com/t/auth0-angular-how-to-not-use-localstorage/120510 "2023-11-08T23:24:05Z")

</div>

I have an Angular 16 project which I have served as a pwa. I would like to not use localstorage as the cache location for tokens but so far I haven’t been able to get the user experience to be anywhere near as great. He…

---

## [Error Handling and Refreshing State Variables for Extended Session](https://community.auth0.com/t/error-handling-and-refreshing-state-variables-for-extended-session/117294)

<div class="topic-metadata">

**Author:** [@Sai](https://community.auth0.com/u/Sai)\
**Replies:** 1\
**Last updated:** [October 4, 2023, 6:46pm UTC](https://community.auth0.com/t/error-handling-and-refreshing-state-variables-for-extended-session/117294 "2023-10-04T18:46:27Z")

</div>

EDIT: Default Login Route Configuration Helped with this. This post can be closed/complete. Hello Auth0 Team, I hope this message finds you well. I’m currently facing an issue with the “invalid state” error in my Angul…

---

## [Need some example in Scope/Permissions in Angular?](https://community.auth0.com/t/need-some-example-in-scope-permissions-in-angular/110220)

<div class="topic-metadata">

**Author:** [@haddis.e](https://community.auth0.com/u/haddis.e)\
**Replies:** 3\
**Last updated:** [June 30, 2023, 5:48pm UTC](https://community.auth0.com/t/need-some-example-in-scope-permissions-in-angular/110220 "2023-06-30T17:48:02Z")

</div>

Want to load components based on user permission/role in angular, I enabled RBAC and add Permission in access token. and I used quick start sample angular app . everything is working perfectly. but couldn’t get access t…

---

## [Periodic api calls to check \`email\_verified\`](https://community.auth0.com/t/periodic-api-calls-to-check-email-verified/104286)

<div class="topic-metadata">

**Author:** [@soham](https://community.auth0.com/u/soham)\
**Replies:** 1\
**Last updated:** [April 7, 2023, 7:40pm UTC](https://community.auth0.com/t/periodic-api-calls-to-check-email-verified/104286 "2023-04-07T19:40:50Z")

</div>

Hello, I am using auth0-angular with my service. I have a condition to not let the user move to next actions , if account is not verified. I check the verification with the /api/v2/users/${id} api. I need to call this a…

---

## [How to change response\_type queryparam before navigating to Universal Login Page](https://community.auth0.com/t/how-to-change-response-type-queryparam-before-navigating-to-universal-login-page/98025)

<div class="topic-metadata">

**Author:** [@jeremiac](https://community.auth0.com/u/jeremiac)\
**Replies:** 3\
**Last updated:** [January 23, 2023, 3:35pm UTC](https://community.auth0.com/t/how-to-change-response-type-queryparam-before-navigating-to-universal-login-page/98025 "2023-01-23T15:35:34Z")

</div>

Hi, I’m using @auth0/auth0-angular 1.11.0 library in the Angular version of our SPA but I’m having trouble with the token I’m receiving as it’s not similar to the ones we usually use in our older non-Angular version. Th…

---

## [Why it is not redirecting to the signup page, when i explicitly put the flag screen\_hint: 'signup'?](https://community.auth0.com/t/why-it-is-not-redirecting-to-the-signup-page-when-i-explicitly-put-the-flag-screen-hint-signup/94905)

<div class="topic-metadata">

**Author:** [@Neos](https://community.auth0.com/u/Neos)\
**Replies:** 3\
**Last updated:** [November 23, 2022, 3:19pm UTC](https://community.auth0.com/t/why-it-is-not-redirecting-to-the-signup-page-when-i-explicitly-put-the-flag-screen-hint-signup/94905 "2022-11-23T15:19:42Z")

</div>

Hello , I am using angular auth0-angular library and try to load the signup page, but it doesn’t redirect me to the sign up page, it always redirect me to login page. ngOnInit(): void { console.log(‘toto’); this.auth…

---

## [Include user roles in JWT with auth0-angular?](https://community.auth0.com/t/include-user-roles-in-jwt-with-auth0-angular/85181)

<div class="topic-metadata">

**Author:** [@PhoenixG](https://community.auth0.com/u/PhoenixG)\
**Replies:** 1\
**Last updated:** [June 21, 2022, 11:47pm UTC](https://community.auth0.com/t/include-user-roles-in-jwt-with-auth0-angular/85181 "2022-06-21T23:47:32Z")

</div>

Updating an Angular SPA in an existing system to use Auth0 instead. It mostly works! Users can log in, and there is a custom user role guard for routing, so the application at least has all the required information (eg, …

---

## [.NET Core Angular 401 when calling API](https://community.auth0.com/t/net-core-angular-401-when-calling-api/71413)

<div class="topic-metadata">

**Author:** [@richardrflores](https://community.auth0.com/u/richardrflores)\
**Replies:** 2\
**Last updated:** [October 28, 2021, 12:13pm UTC](https://community.auth0.com/t/net-core-angular-401-when-calling-api/71413 "2021-10-28T12:13:30Z")

</div>

Hi, I have a .NET Core Angular app that has been setup to make secure calls to an API using but I’m getting a 401error when the client application makes the call to the API. This issue has been reported several times, …

---

## [Best practices regarding querying authentication information multiple times](https://community.auth0.com/t/best-practices-regarding-querying-authentication-information-multiple-times/70005)

<div class="topic-metadata">

**Author:** [@evert](https://community.auth0.com/u/evert)\
**Replies:** 1\
**Last updated:** [September 21, 2021, 1:49pm UTC](https://community.auth0.com/t/best-practices-regarding-querying-authentication-information-multiple-times/70005 "2021-09-21T13:49:13Z")

</div>

I have successfully implemented auth0 into my Angular SPA, but for the UX I have to query at multiple places the user information to hide/show some user elements. For example, a user with the role ‘admin’ is allowed to d…

---

## [Equivalent functionality to webAuth.checkSession from auth0.js in auth0-angular for SSO](https://community.auth0.com/t/equivalent-functionality-to-webauth-checksession-from-auth0-js-in-auth0-angular-for-sso/60980)

<div class="topic-metadata">

**Author:** [@mohammadz](https://community.auth0.com/u/mohammadz)\
**Replies:** 3\
**Last updated:** [June 25, 2021, 11:24am UTC](https://community.auth0.com/t/equivalent-functionality-to-webauth-checksession-from-auth0-js-in-auth0-angular-for-sso/60980 "2021-06-25T11:24:11Z")

</div>

Which SDK this is regarding: - auth0-angular, auth0.js SDK Version: - auth0-angular@1.40.0, auth0.js@9.8.2 Platform Version: - Node 10.19.0 Hi, I was playing around with this repo and my angular 10 app. I was able …

---

## [User.app\_metadata not available when subscribing to user$](https://community.auth0.com/t/user-app-metadata-not-available-when-subscribing-to-user/62390)

<div class="topic-metadata">

**Author:** [@thenetimp](https://community.auth0.com/u/thenetimp)\
**Replies:** 2\
**Last updated:** [May 7, 2021, 11:35am UTC](https://community.auth0.com/t/user-app-metadata-not-available-when-subscribing-to-user/62390 "2021-05-07T11:35:29Z")

</div>

I have an Angular11 application that I have integrated Auth0-angular library into. I have also created a rule that on login checks to see if user.app\_metadata.stripe\_customer exists, if it doesn’t exist it then goes abou…

---

## [HTTP interceptor make a request to /authorize every API call](https://community.auth0.com/t/http-interceptor-make-a-request-to-authorize-every-api-call/60185)

<div class="topic-metadata">

**Author:** [@bart3](https://community.auth0.com/u/bart3)\
**Replies:** 2\
**Last updated:** [April 1, 2021, 8:08am UTC](https://community.auth0.com/t/http-interceptor-make-a-request-to-authorize-every-api-call/60185 "2021-04-01T08:08:18Z")

</div>

Hi, I am using the auth0-angular SDK and the AuthHttpInterceptor to inject access tokens into the authorization header for making API calls. Why does the interceptor call into /authorize for every API call I make? I did…

---

## [Angular 9 support end date?](https://community.auth0.com/t/angular-9-support-end-date/56978)

<div class="topic-metadata">

**Author:** [@admin46](https://community.auth0.com/u/admin46)\
**Replies:** 2\
**Last updated:** [January 29, 2021, 12:49pm UTC](https://community.auth0.com/t/angular-9-support-end-date/56978 "2021-01-29T12:49:54Z")

</div>

Which SDK this is regarding: auth0-angular SDK Version: 1.3.2 Platform Version: Angular 9 Do you guys know for how much time there will be support for Angular 9? since Angular version is in 11 already i was wonderin…

---

## [Whitelist and catch error using google](https://community.auth0.com/t/whitelist-and-catch-error-using-google/56030)

<div class="topic-metadata">

**Author:** [@mayhew3](https://community.auth0.com/u/mayhew3)\
**Replies:** 3\
**Last updated:** [January 15, 2021, 6:58pm UTC](https://community.auth0.com/t/whitelist-and-catch-error-using-google/56030 "2021-01-15T18:58:52Z")

</div>

I’m trying to use the auth0-angular library with Angular 10 to allow a specific set of google users to log in to my site. I found a guide on creating a Whitelist rule, which works okay, but I have a couple questions: …

---

## [How do quickstarts for Angular client and Node.js API fit together?](https://community.auth0.com/t/how-do-quickstarts-for-angular-client-and-node-js-api-fit-together/50094)

<div class="topic-metadata">

**Author:** [@admin44](https://community.auth0.com/u/admin44)\
**Replies:** 2\
**Last updated:** [September 21, 2020, 4:16pm UTC](https://community.auth0.com/t/how-do-quickstarts-for-angular-client-and-node-js-api-fit-together/50094 "2020-09-21T16:16:32Z")

</div>

Hi, I’m trying to secure an Angular application I made as well as the respective backend API written in Node.js/Express.js. I have implemented auth0-angular according to the quickstart and want to use the included HTTP…

---

## [MFA not working since upgrading to Auth0 v9 and Lock v11](https://community.auth0.com/t/mfa-not-working-since-upgrading-to-auth0-v9-and-lock-v11/9344)

<div class="topic-metadata">

**Author:** [@alex\_oseigyau](https://community.auth0.com/u/alex_oseigyau)\
**Replies:** 1\
**Last updated:** [December 14, 2018, 6:34pm UTC](https://community.auth0.com/t/mfa-not-working-since-upgrading-to-auth0-v9-and-lock-v11/9344 "2018-12-14T18:34:16Z")

</div>

The developer environment is: We are running a Single Page Application The SPA is running on Angular 1.x We were using Auth v8 and Lock v10 previously We are using the thin Angular 1.x wrappers for the above libraries P…

---

## [Auth0Lock or Auth0 must be available constructorName](https://community.auth0.com/t/auth0lock-or-auth0-must-be-available-constructorname/9103)

<div class="topic-metadata">

**Author:** [@oren451](https://community.auth0.com/u/oren451)\
**Replies:** 1\
**Last updated:** [January 3, 2018, 8:14pm UTC](https://community.auth0.com/t/auth0lock-or-auth0-must-be-available-constructorname/9103 "2018-01-03T20:14:18Z")

</div>

I follow “AngularJS Authentication: Secure Your App With Auth0” tutorial. I got that Error “Auth0Lock or Auth0 must be available constructorName”, where i call init function with authProvider variable inside angular co…
