I’m not sure what the best way to use GitHub APIs here is. In the player, PuzzleScript doesn’t want to ask users to sign in to GitHub.
Users do sign in to the editor for the Share button. If the user signed in there, the player could piggyback on that token, but it’s not ideal.
Oh. It looks like you tried this in the past (
#606), but reverted it later because it didn’t properly handle expired tokens (
#689).
I could take a look at that another time. I assume the Share button deals with expired tokens (or if it doesn’t, it should too).
You could have the player prompt for sign-in when the rate limit error occurs…annoying but more discoverable than the editor.