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

Авторизация через direct в аккаунт, который находится в бане #521

Open
xzeldon opened this issue Nov 17, 2022 · 0 comments
Labels
package: @vk-io/authorization Issues related to @vk-io/authorization

Comments

@xzeldon
Copy link

xzeldon commented Nov 17, 2022

What did you do?

Авторизация через direct в аккаунт, который находится в бане

What did you expect to happen?

Получить токен

What was the actual result?

TypeError: Cannot read properties of undefined (reading 'startsWith')

Additional Info

Если страница находится в бане, вк возвращает следующий ответ:
{ error: 'need_validation', error_description: 'user has been banned', ban_info: { member_name: 'name', message: 'message', access_token: 'token' } }

Необходимо дополнительно обрабатывать этот случай в методе run() (direct.ts:200)

Versions

package version
vk-io 4.7.0
@vk-io/authorization 1.3.0
node 18.12.1
TypeScript 4.8.3
npm 8.19.2
@xzeldon xzeldon added the package: @vk-io/authorization Issues related to @vk-io/authorization label Nov 17, 2022
@xzeldon xzeldon changed the title Cannot read properties of undefined (reading 'startsWith') Авторизация через direct в аккаунт, который находится в бане Nov 17, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
package: @vk-io/authorization Issues related to @vk-io/authorization
Projects
None yet
Development

No branches or pull requests

1 participant