# How to change response\_type queryparam before navigating to Universal Login Page

**URL:** <https://community.auth0.com/t/how-to-change-response-type-queryparam-before-navigating-to-universal-login-page/98025>\
**Category:** Get Help\
**Tags:** sdks-quickstarts, auth0-angular\
**Created:** [January 12, 2023, 9:20am UTC](https://community.auth0.com/t/how-to-change-response-type-queryparam-before-navigating-to-universal-login-page/98025 "2023-01-12T09:20:25Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![jeremiac](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeremiac/32/42474_2.png) [@jeremiac](https://community.auth0.com/u/jeremiac)\
**Post date:** [January 12, 2023, 9:20am UTC](https://community.auth0.com/t/how-to-change-response-type-queryparam-before-navigating-to-universal-login-page/98025/1 "2023-01-12T09:20:25Z")

</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. The only important different I can notice is that the value for `response_type` is different. In the Angular version it’s `code` while in the old application it’s `id_token`

I tried looking for documentation of package to change this value but having trouble finding it. The one I found below is a broken link.

[https://auth0.github.io/auth0-angular/interfaces/auth\_config.authconfig.html](https://auth0.github.io/auth0-angular/interfaces/auth_config.authconfig.html)

My current config only provides the values for domain, clientId and audience. Might adding another value fix this?

Thanks in advance for any help you can provide.

Vincent

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 20, 2023, 8:44pm UTC](https://community.auth0.com/t/how-to-change-response-type-queryparam-before-navigating-to-universal-login-page/98025/3 "2023-01-20T20:44:53Z")

</div>

Hi @jeremiac,

Welcome to the Auth0 Community!

The `response_type` may not be the problem. Let’s take a look at the core of the issue; can you please provide an example of the token you are receiving and the one you are expecting?

---

<div class="post-metadata">

**Author:** ![jeremiac](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/jeremiac/32/42474_2.png) [@jeremiac](https://community.auth0.com/u/jeremiac)\
**Post date:** [January 23, 2023, 4:01am UTC](https://community.auth0.com/t/how-to-change-response-type-queryparam-before-navigating-to-universal-login-page/98025/4 "2023-01-23T04:01:32Z")

</div>

Hi Dan,

I had email correspondence with an Auth0 rep and got my answers. This thread can be closed.

---

<div class="post-metadata">

**Author:** ![dan.woda](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/dan.woda/32/18340_2.png) [@dan.woda](https://community.auth0.com/u/dan.woda)\
**Post date:** [January 23, 2023, 3:35pm UTC](https://community.auth0.com/t/how-to-change-response-type-queryparam-before-navigating-to-universal-login-page/98025/5 "2023-01-23T15:35:34Z")

</div>

Thanks for the update.

For future users: The auth0-angular SDK doesn’t allow for grants other than the auth code flow. Regardless, you should be able to get the same ID token by passing the correct scopes.

---

<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:** [February 6, 2023, 3:36pm UTC](https://community.auth0.com/t/how-to-change-response-type-queryparam-before-navigating-to-universal-login-page/98025/6 "2023-02-06T15:36:22Z")

</div>

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