ImplicitGrantFlow force opens browser window #41
Loading…
x
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
In the Example (and from what I can see there is no way to solve this) the ImplicitGranFlow login will always pop open a default browser window for the user to authenticate with Twitch. I'd love to save the access token, refresh token and any other information in order to reload it after the initial page confirmation.
If I'm missing something basic, perhaps the Example, or some other place could make this more clear.
Expected: Only open the browser when access & refresh token is invalid, otherwise just use the prior tokens.
Hello, check out my other example project for how to handle this:
e7ce78a356/TwitchOverlay.gd (L24)
It probably is also a good idea to add it to the default repository here, so I'll do just that.
The TwitchIDConnection has a builtin validity check for the passed in token - so instantiate a new token using the constructor from the data you saved and pass it in, the TwitchIDConnection will handle the rest.
Thanks, with that info I did get things working.