UNPKG

snowflake-sdk

Version:
16 lines (15 loc) 725 B
import { AuthClass, AuthRequestBody } from './types'; import { WIP_ConnectionConfig } from '../connection/types'; import type * as OauthType from 'oauth4webapi' with { 'resolution-mode': 'import' }; 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>; requestToken(clientId: string, clientSecret: string, parameters: URLSearchParams): Promise<string>; } export default AuthOauthClientCredentials;