Use es7
This commit is contained in:
parent
2c01bf05fa
commit
18d5f8c20e
1 changed files with 3 additions and 4 deletions
|
@ -8,11 +8,10 @@ function JSONify(response) {
|
||||||
|
|
||||||
const [GET] = ['GET'];
|
const [GET] = ['GET'];
|
||||||
|
|
||||||
export function checkToken(possibleToken) {
|
export async function checkToken(possibleToken) {
|
||||||
const url = endpoints.get('USER_INFO');
|
const url = endpoints.get('USER_INFO');
|
||||||
return request(url, GET, {}, possibleToken).then(function (response) {
|
const response = await request(url, GET, {}, possibleToken);
|
||||||
return response.ok;
|
return response.ok;
|
||||||
});
|
|
||||||
}
|
}
|
||||||
|
|
||||||
export async function getUserDetails() {
|
export async function getUserDetails() {
|
||||||
|
|
Reference in a new issue