How to get user ID of extension viewer?

You need to extract the user ID from the JWT Schema.

Broadcasters are “auto allowed” to share their ID