UNPKG

@withkeystone/cli

Version:

Keystone CLI - Test automation for modern web apps

19 lines 641 B
import { AuthenticatedClient } from './AuthenticatedClient.js'; export interface AuthConfig { apiUrl?: string; frontendUrl?: string; } /** * Get an authenticated client using stored JWT tokens. * Throws an error if the user is not authenticated. */ export declare function getAuthenticatedClient(config?: AuthConfig): Promise<AuthenticatedClient>; /** * Check if the user is authenticated */ export declare function isAuthenticated(): Promise<boolean>; /** * Get the current access token if authenticated */ export declare function getAccessToken(): Promise<string | null>; //# sourceMappingURL=getAuthenticatedClient.d.ts.map