This repository has been archived on 2023-03-26. You can view files and clone it, but cannot push or open issues or pull requests.
Sphere/app/api/CircleCI.js

9 lines
248 B
JavaScript

import endpoints from './endpoints';
import request from './request';
export function checkToken(token) {
const url = endpoints.get('USER_INFO');
return request(url, 'GET', {}, token).then(function (response) {
return response.ok;
});
}