UNPKG

snowflake-sdk

Version:
29 lines (25 loc) 475 B
/* * Copyright (c) 2015-2024 Snowflake Computing Inc. All rights reserved. */ /** * Creates an oauth authenticator. * * @param {String} token * * @returns {Object} * @constructor */ function AuthOauth(token) { /** * Update JSON body with token. * * @param {JSON} body * * @returns {null} */ this.updateBody = function (body) { body['data']['TOKEN'] = token; }; this.authenticate = async function () {}; } module.exports = AuthOauth;