UNPKG

@appsemble/node-utils

Version:

NodeJS utilities used by Appsemble internally.

13 lines (12 loc) 609 B
export declare const CREDENTIALS_ENV_VAR = "APPSEMBLE_CLIENT_CREDENTIALS"; export declare function getService(remote: string): string; export declare function getKeytar(): Promise<typeof import('keytar')>; /** * Login to the server using OAuth2 client credentials. * * @param remote Host to fetch token from. * @param scope The OAuth2 scope to request. This may be space separated to request * multiple scopes. * @param inputCredentials Client credentials passed from the command line. */ export declare function authenticate(remote: string, scope: string, inputCredentials?: string): Promise<void>;