D
D
dimon_95192022-04-15 23:19:46
Python
dimon_9519, 2022-04-15 23:19:46

VK API authorization error?

Hello, can you tell me, earlier I could always authenticate my account using the vk_api.VkApi.auth () method, specifying ONLY the login and password. And today I get this error -

vk_api.exceptions.AuthError: API auth error (no login cookies).

Authorization was done using the following code:

vk_session = vk_api.VkApi(login=''79148477382', password='password123') # conditional password and number
vk_session.auth()
vk_api = vk_session.get_api()

I can't figure out what cookies are he wants me to enter

Answer the question

In order to leave comments, you need to log in

2 answer(s)
S
shurshur, 2022-04-16
@shurshur

Authorization by login and password is an unsupported method and has been working through a stump deck for a long time. OAuth2 should be used.

D
defriz, 2022-04-16
@defriz

https://vkhost.github.io/ , the Kate Mobile method takes a
token from there and logs in using it.

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question