A lot of people take some information and base64encode it or similar and shunt that into state and decode it the otherside.
Or make up some identifier, assign that to the session of the user, then redirect to Twitch with that as a the state and use that on the return.
The uses of state are basically limitless, just don’t send toooooo much.
Use a ID or something rather than many many keys