snowflake-sdk
Version:
Node.js driver for Snowflake
29 lines (25 loc) • 475 B
JavaScript
/*
* 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;