youtube-studio icon indicating copy to clipboard operation
youtube-studio copied to clipboard

What are botguardResponse and challenge for ?

Open michael-dm opened this issue 3 years ago • 3 comments

michael-dm avatar Jan 29 '22 18:01 michael-dm

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.

adasq avatar Jan 29 '22 18:01 adasq

Interesting thanks for your answer ! In your experience, how long does the api keys last ? (not the session token)

michael-dm avatar Jan 30 '22 15:01 michael-dm

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.

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

quangkhjeu avatar Mar 08 '22 03:03 quangkhjeu