Closed kusainovv closed 4 months ago
Hi!
It can be automatically updated and received by calling the get_csrf_token
method of the service API.
from ya_business_api.sync_api import SyncAPI
api = SyncAPI.build(...)
csrf_token = api.service.get_csrf_token()
It may be empty, the server does not check it (yet) and usually differs from session id
only in the presence of `fakesign0000000000000000000' in the last segment.
When the token expires, it is redirected to the authorization update page, which is protected by a captcha.
You may be able to transfer the session token to the browser emulator (for example, playwright) so that it makes the redirects, but I'm not sure their defense will miss it.
Or you can try recaptcha services to bypass it.
Hello!
Are you planning to add logic to re-issue the authentication token to always keep authentication credentials up to date? I mean these fields.
This way, the user passes the initial credentials and subsequently each request updates this data to keep it current.
If you aren't, do you have any thoughts about it?