Prerequisites
Description
When providing a tokes which lacks the required scopes, there is no way of handling the error in code.
With #605 Twitch4J added logging, which kinda works, but is only available for the user.
It would be cool to have the possibility to handle fallbacks or show custom error message in gui.
Alternatives
Afaik there's no alternative way, just watching the log
Additional Context
I'm developing the Minecraft Fabric Mod Twitch Chat Bridge and I use the Twitch4J-Fabric wrapper (obviously)
Therefore I have the end user (who I have no control of) to generate and enter a token for their account.
If they generated a wrong token (with missing scopes) the mod simply wont work and the user has no real way of knowing why. Only if they spot the logging messages, which basically nobody does because I assume most don't know what to look for.
I rather want to catch this error in code and show a better message in the game itself.
Prerequisites
Description
When providing a tokes which lacks the required scopes, there is no way of handling the error in code.
With #605 Twitch4J added logging, which kinda works, but is only available for the user.
It would be cool to have the possibility to handle fallbacks or show custom error message in gui.
Alternatives
Afaik there's no alternative way, just watching the log
Additional Context
I'm developing the Minecraft Fabric Mod Twitch Chat Bridge and I use the Twitch4J-Fabric wrapper (obviously)
Therefore I have the end user (who I have no control of) to generate and enter a token for their account.
If they generated a wrong token (with missing scopes) the mod simply wont work and the user has no real way of knowing why. Only if they spot the logging messages, which basically nobody does because I assume most don't know what to look for.
I rather want to catch this error in code and show a better message in the game itself.