Check if it is the streamer viewing

Hello

How can I check if the user viewing my extension is the streamer? Does this require authentication?

See if the userID (is allowing ID sharing) is the JWT matches the channel ID - window.Twitch.ext.viewer.id:
Or the opaqueId is UchannelID
Or the JWT role is broadcaster
Or the Helper Role is broadcaster as in window.Twitch.ext.viewer.role

or if they are on the config view, defintely the broadcaster, but still wise to test

1 Like

Thank you, perfect.