Skip to content
This repository has been archived by the owner on Sep 10, 2020. It is now read-only.

2.3 Token info

William Fortin edited this page Aug 21, 2014 · 1 revision
GET /tokenInfo

Cet appel permet de savoir quel est l'utilisateur lié à ce token. (Utile lorsque que le token est sauvegardé dans un cookie)

Entrée (header)
Authorization : Token

(Remplacer token par la valeur de votre token)

Sortie
{
    "email": "john.smith@mail.com",
    "name": "John Smith",
    "token": "eyJ0eXAiOiJKV1QiLCJhbGciOiJIUzI1NiJ9.eyJpc3MiOiI1M2VjMWVhMmQ3N2FhZmU3N2Q4YzM3YjgiLCJleHAiOjE0MDg2NzI4ODI4ODV9.5wLLC8kqaQyPGWKAidYZpsMz5XJtwk2Np1KmYEusizY",
    "id": "53ec1ea2d7121fe77d8c37b8"
}