accounts
Version:
Tempo Accounts SDK
27 lines • 1.27 kB
TypeScript
import type { DeviceCode } from 'wata';
import type * as Adapter from '../core/Adapter.js';
/**
* Creates a CLI bootstrap adapter backed by the Wata device-code transport
* (OAuth 2.0 Device Authorization Grant, RFC 8628 with PKCE).
*
* Authorization opens the wallet's verification page in a browser; the wallet
* responds with a signed key authorization once the user approves.
*/
export declare function cli(options: cli.Options): Adapter.Adapter;
export declare namespace cli {
type Options = {
/** Base URL of the wallet's device-code endpoints (derives `/register` and `/token`). */
host: string;
/** Provider display name. @default "Tempo CLI" */
name?: string | undefined;
/** Browser opener override. */
open?: ((url: string, prompt: DeviceCode.Prompt) => Promise<void> | void) | undefined;
/** Poll cadence override in milliseconds. Defaults to the host-advertised interval. */
pollingInterval?: number | undefined;
/** Reverse-DNS provider identifier. @default "xyz.tempo.cli" */
rdns?: string | undefined;
/** Overall wait for user approval in milliseconds. @default 300000 */
timeout?: number | undefined;
};
}
//# sourceMappingURL=adapter.d.ts.map