youtube-studio
youtube-studio copied to clipboard
What are botguardResponse and challenge for ?
Hey @michael-dm. It's a dead code and should be removed. There's no need to set those properties on init() (it's not documented either).
Originally, those variables were considered as a requirement for SESSION_TOKEN generation on runtime (more here) . The reality is more sophisticated, as the generation process includes client-side JS code to be executed by the browser, which is a tough task to do within the nodejs environment.
Interesting thanks for your answer ! In your experience, how long does the api keys last ? (not the session token)
Hey @michael-dm. It's a dead code and should be removed. There's no need to set those properties on
init()(it's not documented either).Originally, those variables were considered as a requirement for
SESSION_TOKENgeneration on runtime (more here) . The reality is more sophisticated, as the generation process includes client-side JS code to be executed by the browser, which is a tough task to do within the nodejs environment.
Can you find a solution for get new sessionToken when it expired? I've tried new challenge with old botguard and it didn't return a sessionToken