Purpose:

Perform final step of user authorization in oauth2: you have to exchange a code for an user access token.

Code example:

Find below an example to perform authorizatoin of recent logged user: