★ wanayoo — archive 1999 https://github.com/python273/vk_api/issues/362Nouvelle recherche | Portail wanayoo
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

Токен двухфакторной аутентификации в json-конфиге устаревает каждый день #362

Open
please-fill-out-this-field opened this issue Jun 10, 2020 · 2 comments
Labels
bug

Comments

@please-fill-out-this-field
Copy link

@please-fill-out-this-field please-fill-out-this-field commented Jun 10, 2020

То есть, стабильно раз в 24 часа. Так и должно быть? В их документации ничего не нашёл.

Окружение

vk_api: 11.8.0

Пример

def auth_handler():
    key = input("Enter authentication code: ")
    remember_device = True

    return key, remember_device

vk_session = vk_api.VkApi(login, password, app_id=app_id, auth_handler=auth_handler)
vk_session.auth()
@python273
Copy link
Owner

@python273 python273 commented Jun 11, 2020

remember_device вроде не работает, нужно чинить

с .auth(token_only=True) должно реже просить

@python273 python273 added the bug label Jun 11, 2020
@please-fill-out-this-field
Copy link
Author

@please-fill-out-this-field please-fill-out-this-field commented Jun 12, 2020

с .auth(token_only=True) должно реже просить

В течение последних полутора суток не просил, действительно. Спасибо.

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

Successfully merging a pull request may close this issue.

None yet
2 participants
You can’t perform that action at this time.