@grasplabs/grasp
Version:
TypeScript SDK for browser automation and secure command execution in highly available and scalable cloud browser environments
14 lines • 463 B
JavaScript
;
Object.defineProperty(exports, "__esModule", { value: true });
exports.verify = verify;
async function login(token) {
const response = await fetch(`https://d1toyru2btfpfr.cloudfront.net/api/key/verify?token=${encodeURIComponent(token)}`);
return await response.json();
}
function verify(config) {
if (!config.key) {
throw new Error('Grasp key are required');
}
return login(config.key);
}
//# sourceMappingURL=auth.js.map