Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
40 changes: 40 additions & 0 deletions lib/vibe-auth.d.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
export interface EnsureVibecodrAuthParams {
apiBase?: string;
configPath?: string;
verbose?: boolean;
minValidSeconds?: number;
}

export function ensureVibecodrAuth(
params?: EnsureVibecodrAuthParams,
): Promise<{ token: string; expiresAt: number }>;

export interface RefreshVibecodrTokenParams {
configPath?: string;
apiBase?: string;
verbose?: boolean;
}

export function refreshVibecodrToken(
params?: RefreshVibecodrTokenParams,
): Promise<{ token: string; expiresAt: number }>;

export function defaultConfigPath(): string;

export function normalizeOrigin(origin: string): string;

export function isLikelyClerkTokenProblem(err: unknown): boolean;

export function getStoredCredentials(params?: {
configPath?: string;
}): {
hasCredentials: boolean;
expiresAt?: number;
isExpired?: boolean;
configPath: string;
};

export function fixWindowsPermissions(
filePath: string,
options?: { verbose?: boolean },
): { success: boolean; warning?: string; commandRun?: string };
Loading