UNPKG

vtex

Version:

The platform for e-commerce apps

30 lines (29 loc) 1.15 kB
import { InstanceOptions, IOClient, IOContext } from '@vtex/api'; export declare class VTEXID extends IOClient { private static readonly DEFAULT_TIMEOUT; private static readonly DEFAULT_RETRIES; private static readonly BASE_URL; private static readonly API_PATH_PREFIX; private static readonly TOOLBELT_API_PATH_PREFIX; private static readonly VTEX_ID_AUTH_COOKIE; static createClient(customContext?: Partial<IOContext>, customOptions?: Partial<InstanceOptions>): VTEXID; static invalidateBrowserAuthCookie(account: string): any; constructor(ioContext: IOContext, opts: InstanceOptions); startToolbeltLogin({ account, secretHash, loopbackUrl }: StartToolbeltLoginInput): Promise<string>; validateToolbeltLogin({ account, state, secret, ott }: ValidateToolbeltLoginInput): Promise<{ token: string; }>; invalidateToolbeltToken(token: string): Promise<any>; } interface StartToolbeltLoginInput { account: string; secretHash: string; loopbackUrl: string; } interface ValidateToolbeltLoginInput { account: string; state: string; secret: string; ott: string; } export {};