Thanks for those pointers. (New to Twitch SDK coming from Mixer)
@Dist: Thanks.
@Breci : Thanks
Took me a while to figure it ou … but here is what I do now :
in onAuthorized i check if viewer is linked ( .viewer.isLinked)
if yes i get the userId in .viewer.id. and thus can use it to get username (usefull for my game).
if notLinked: i show an overlay with a button to open the requestIdShare() panel to the viewer.
So when she enables sharing my extensions gets reloaded this time with isLinked to true (if viewer granted).
So basically it is by mixing auth and viewer infos that the whole picture can be understood ?
Sorry for those noob questions, first extension…
Thanks
Nick