# Okta vuejs implicit callback token truncated

**URL:** <https://devforum.okta.com/t/okta-vuejs-implicit-callback-token-truncated/12469>\
**Category:** Questions\
**Created:** [January 12, 2021, 2:33pm UTC](https://devforum.okta.com/t/okta-vuejs-implicit-callback-token-truncated/12469 "2021-01-12T14:33:52Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![hwhartman-chewy](https://avatars.discourse-cdn.com/v4/letter/h/c6cbf5/32.png) [@hwhartman-chewy](https://devforum.okta.com/u/hwhartman-chewy)\
**Post date:** [January 12, 2021, 2:33pm UTC](https://devforum.okta.com/t/okta-vuejs-implicit-callback-token-truncated/12469/1 "2021-01-12T14:33:52Z")

</div>

Hi,

My setup is a VueJs app using the okta vuejs sdk. I am using OIDC with implicit flow to get an id token.  
I am using version 3.1.0 of the okta-vue sdk.

After a user successfully authenticates on the okta login screen, the automatic redirect to the route `/login/callback` only contains part of the id\_token. When I decode the token, I can see that it has been truncated. The callback uri (plus the fragment) is always 8182 bytes long.

I’ve took a look at this and it appears to be my issue:

> **[Okta Help Center (Lightning)](https://support.okta.com/help/s/article/Access-Token-Truncated-Due-to-Length-of-URL?language=en_US)**

Unfortunately the suggested work around seems to require sending the response as a post which I don’t believe will work in the UI.

I did change the responseMode to ‘form\_post’, which fails, but when I examine the post payload it contains id\_token in its untruncated form.

Has anybody else encountered this or have other ideas for how to solve it?

Thanks  
Hanns

---

<div class="post-metadata">

**Author:** ![erik](https://avatars.discourse-cdn.com/v4/letter/e/b5ac83/32.png) [@erik](https://devforum.okta.com/u/erik)\
**Post date:** [January 12, 2021, 5:45pm UTC](https://devforum.okta.com/t/okta-vuejs-implicit-callback-token-truncated/12469/2 "2021-01-12T17:45:44Z")

</div>

Hello,  
Can you attach the errors when it fails with the responseMode set to ‘form\_post’?

If you could provide more details about your application. Are you using the widget hosted in the Vue app, or a custom login form?

---

<div class="post-metadata">

**Author:** ![Lijia](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/lijia/32/2295_2.png) [@Lijia](https://devforum.okta.com/u/Lijia)\
**Post date:** [January 14, 2021, 1:37am UTC](https://devforum.okta.com/t/okta-vuejs-implicit-callback-token-truncated/12469/3 "2021-01-14T01:37:45Z")

</div>

@hwhartman-chewy The maximum characters is 8000. So your call back return is larger than the max value. As you mentioned, it looks like you already get the id\_token with its untruncated form? So what is the question now?

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [January 26, 2024, 5:57pm UTC](https://devforum.okta.com/t/okta-vuejs-implicit-callback-token-truncated/12469/4 "2024-01-26T17:57:54Z")

</div>

Closed on January 26, 2024, 5:57pm UTC


