This commit is contained in:
Jake Howard 2016-05-05 18:26:22 +01:00
parent 2c01bf05fa
commit 18d5f8c20e

View file

@ -8,11 +8,10 @@ function JSONify(response) {
const [GET] = ['GET'];
export function checkToken(possibleToken) {
export async function checkToken(possibleToken) {
const url = endpoints.get('USER_INFO');
return request(url, GET, {}, possibleToken).then(function (response) {
const response = await request(url, GET, {}, possibleToken);
return response.ok;
});
}
export async function getUserDetails() {