snowflake-sdk
Version:
Node.js driver for Snowflake
35 lines (34 loc) • 841 B
TypeScript
export = AuthIDToken;
/**
* Creates an ID token authenticator.
*
* @param {Object} connectionConfig
* @param {Object} httpClient
*
* @returns {Object} the authenticator
* @constructor
*/
declare function AuthIDToken(connectionConfig: Object, httpClient: Object): Object;
declare class AuthIDToken {
/**
* Creates an ID token authenticator.
*
* @param {Object} connectionConfig
* @param {Object} httpClient
*
* @returns {Object} the authenticator
* @constructor
*/
constructor(connectionConfig: Object, httpClient: Object);
idToken: any;
/**
* Update JSON body with token.
*
* @param {JSON} body
*
* @returns {null}
*/
updateBody: (body: JSON) => null;
authenticate: () => Promise<void>;
reauthenticate: (body: any) => Promise<void>;
}