F
F
felony13twelve2020-10-11 19:06:13
In contact with
felony13twelve, 2020-10-11 19:06:13

Why is the code parameter returned during authorization needed?

When authorizing through VK, the GET parameter code is returned to you, where does it come from? This is a code, like a hash, when a user logs in to VK, it changes. Right?

Answer the question

In order to leave comments, you need to log in

1 answer(s)
V
Vladimir Volokhov, 2020-10-12
@Vlaytur

codeserves to receive access_token. But be careful, the code is valid for 1 hour after authorization.
To receive access_token, you need to send a request to https://oauth.vk.com/access_token . By passing the parameters specified in the documentation .

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question