snowflake-sdk
Version:
Node.js driver for Snowflake
17 lines (16 loc) • 746 B
TypeScript
import { AuthClass, AuthRequestBody } from './types';
import { WIP_ConnectionConfig } from '../connection/types';
import type * as OauthType from 'oauth4webapi';
declare class AuthOauthClientCredentials implements AuthClass {
private connectionConfig;
private httpClient;
_oauthImport: typeof OauthType;
token: string;
constructor(connectionConfig: WIP_ConnectionConfig, httpClient: any);
getOauth4webapi(): Promise<typeof OauthType>;
updateBody(body: AuthRequestBody): void;
authenticate(): Promise<void>;
reauthenticate(body: AuthRequestBody): Promise<void>;
requestToken(clientId: string, clientSecret: string, parameters: URLSearchParams): Promise<string>;
}
export default AuthOauthClientCredentials;