snowflake-sdk
Version:
Node.js driver for Snowflake
33 lines (32 loc) • 692 B
TypeScript
export = AuthOauthPAT;
/**
* Creates an oauth PAT authenticator.
*
* @param {String} token
* @param {String} password
*
* @returns {Object}
* @constructor
*/
declare function AuthOauthPAT(token: string, password: string): Object;
declare class AuthOauthPAT {
/**
* Creates an oauth PAT authenticator.
*
* @param {String} token
* @param {String} password
*
* @returns {Object}
* @constructor
*/
constructor(token: string, password: string);
/**
* Update JSON body with token.
*
* @param {JSON} body
*
* @returns {null}
*/
updateBody: (body: JSON) => null;
authenticate: () => Promise<void>;
}