# Invalid State Parameter when Installing App through Local Test

**URL:** <https://devforum.zoom.us/t/invalid-state-parameter-when-installing-app-through-local-test/107227>\
**Category:** App Marketplace\
**Created:** [April 4, 2024, 7:32pm UTC](https://devforum.zoom.us/t/invalid-state-parameter-when-installing-app-through-local-test/107227 "2024-04-04T19:32:05Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![h.g](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/h.g/32/57536_2.png) [@h.g](https://devforum.zoom.us/u/h.g)\
**Post date:** [April 4, 2024, 7:32pm UTC](https://devforum.zoom.us/t/invalid-state-parameter-when-installing-app-through-local-test/107227/1 "2024-04-04T19:32:05Z")

</div>

When I am testing my application through the “Local Test” tab, it fails with the error “Invalid state parameter”. See below for the Authorization URL I am using.

 ![oauth url](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/c/4/c4e896a23db588e1bc0c2b2c9bb8bb3eea36e209.png)

However, I have some of my users add this using the `/install` route. During the first time they install this app, and first time only, they also get this error.

How come when authorizing the app for the first time, we run into this error? I do not want my first time users to face this issue.

Is this an error with adding the app via marketplace? It seems like if the app is added for the first time, it doesn’t pass the state variable through. Same with the Authorization URL in the screenshot above.

I don’t think I will remove that check in my server code (since that would break OIDC protocol), but I also don’t want my end users facing this issue the first time they install.

---

<div class="post-metadata">

**Author:** ![app\_admin\_svc](https://avatars.discourse-cdn.com/v4/letter/a/f07891/32.png) [@app\_admin\_svc](https://devforum.zoom.us/u/app_admin_svc)\
**Post date:** [April 26, 2024, 11:43pm UTC](https://devforum.zoom.us/t/invalid-state-parameter-when-installing-app-through-local-test/107227/2 "2024-04-26T23:43:43Z")

</div>

I’m having the same issue.

Any updates?

---

<div class="post-metadata">

**Author:** ![gianni.zoom](https://sea2.discourse-cdn.com/flex016/user_avatar/devforum.zoom.us/gianni.zoom/32/32523_2.png) [@gianni.zoom](https://devforum.zoom.us/u/gianni.zoom)\
**Post date:** [April 29, 2024, 6:54pm UTC](https://devforum.zoom.us/t/invalid-state-parameter-when-installing-app-through-local-test/107227/3 "2024-04-29T18:54:51Z")

</div>

Hi @h.g , can you confirm if you’re following the process outlined here at time stamp 4:13: [https://youtu.be/9dO4dMO\_Omw?si=pk3Z-6wGQZ8Fg1LZ&t=253](https://youtu.be/9dO4dMO_Omw?si=pk3Z-6wGQZ8Fg1LZ&t=253)

---

<div class="post-metadata">

**Author:** ![system](https://us1.discourse-cdn.com/flex016/uploads/zoomdeveloper/original/3X/6/1/614bdd549b610bbaa46ff934617683a02bdaa03c.png) [@system](https://devforum.zoom.us/u/system)\
**Post date:** [May 5, 2024, 5:32am UTC](https://devforum.zoom.us/t/invalid-state-parameter-when-installing-app-through-local-test/107227/4 "2024-05-05T05:32:26Z")

</div>

Closed on May 5, 2024, 5:32am UTC

This topic was automatically closed after 5 days. New replies are no longer allowed.
