# requestIdShare for Staff / Moderator

**URL:** <https://staging-discuss.dev.twitch.com/t/requestidshare-for-staff-moderator/17573>\
**Category:** Extensions\
**Created:** [September 7, 2018, 1:17am UTC](https://staging-discuss.dev.twitch.com/t/requestidshare-for-staff-moderator/17573 "2018-09-07T01:17:17Z")\
**Posts on this page:** 4\
**Page:** 1

<div class="post-metadata">

**Author:** ![codephobia](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/codephobia/32/3715_2.png) [@codephobia](https://staging-discuss.dev.twitch.com/u/codephobia)\
**Post date:** [September 7, 2018, 1:17am UTC](https://staging-discuss.dev.twitch.com/t/requestidshare-for-staff-moderator/17573/1 "2018-09-07T01:17:17Z")

</div>

I recently submitted my extension for approval but it was denied because the Twitch staff were unable to authorize the extension. Currently I determine if the user has authorized by making sure that the user\_id doesn’t start with an A or a U with the exception of U + channel id for the broadcaster. Does the moderator id have some other prefix? I’m not seeing anything in the docs for this.

---

<div class="post-metadata">

**Author:** ![codephobia](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/codephobia/32/3715_2.png) [@codephobia](https://staging-discuss.dev.twitch.com/u/codephobia)\
**Post date:** [September 7, 2018, 5:40am UTC](https://staging-discuss.dev.twitch.com/t/requestidshare-for-staff-moderator/17573/2 "2018-09-07T05:40:15Z")

</div>

I am guessing that since you don’t know if a user is a moderator without them authorizing the extension ([Moderator role documentation request](https://staging-discuss.dev.twitch.com/t/moderator-role-documentation-request/12134)), you can simply decode the JWT and check if the role in the payload is of type “moderator”. If anyone can confirm that, would be appreciated, but I will test it and resubmit if it is working for me.

---

<div class="post-metadata">

**Author:** ![patrickgh3](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/patrickgh3/32/3263_2.png) [@patrickgh3](https://staging-discuss.dev.twitch.com/u/patrickgh3)\
**Post date:** [September 7, 2018, 6:03am UTC](https://staging-discuss.dev.twitch.com/t/requestidshare-for-staff-moderator/17573/3 "2018-09-07T06:03:48Z")

</div>

I just checked my old extension code, it does role == ‘moderator’ || role == ‘broadcaster’. I’m guessing the broadcaster check works as intended but can’t remember for sure.

---

<div class="post-metadata">

**Author:** ![codephobia](https://d1d6mrmdu7ztse.cloudfront.net/user_avatar/staging-discuss.dev.twitch.com/codephobia/32/3715_2.png) [@codephobia](https://staging-discuss.dev.twitch.com/u/codephobia)\
**Post date:** [September 7, 2018, 6:07am UTC](https://staging-discuss.dev.twitch.com/t/requestidshare-for-staff-moderator/17573/4 "2018-09-07T06:07:09Z")

</div>

Appreciate it. I test the logic out and it works well. I just made a token that had moderator in the role and added it to my runlist. Resubmitted. Now I wait. 🙂
