A short way to get Token from 42 API
This solution get the code given by API request, then get the token through Oauth2. Then show the info of the person has benn logged.
Yo have to fill: CLIENT_ID, CLIENT_SECRET, REDIRECT_URI.
Everything is handle by cUrl in php.