Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

What are botguardResponse and challenge for ? #29

Open
michael-dm opened this issue Jan 29, 2022 · 3 comments
Open

What are botguardResponse and challenge for ? #29

michael-dm opened this issue Jan 29, 2022 · 3 comments

Comments

@michael-dm
Copy link

No description provided.

@adasq
Copy link
Owner

adasq commented Jan 29, 2022

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.

@michael-dm
Copy link
Author

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

@quangkhjeu
Copy link

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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants