Add cancel flow for Claude account login (#6702)
Co-authored-by: Orca <help@stably.ai>
This commit is contained in:
@@ -1901,6 +1901,7 @@ export type PreloadApi = {
|
||||
runtime?: 'host' | 'wsl'
|
||||
wslDistro?: string | null
|
||||
}) => Promise<ClaudeRateLimitAccountsState>
|
||||
cancelPendingLogin: () => Promise<boolean>
|
||||
reauthenticate: (args: { accountId: string }) => Promise<ClaudeRateLimitAccountsState>
|
||||
remove: (args: { accountId: string }) => Promise<ClaudeRateLimitAccountsState>
|
||||
select: (args: {
|
||||
|
||||
@@ -1705,6 +1705,8 @@ const api = {
|
||||
list: (): Promise<unknown> => ipcRenderer.invoke('claudeAccounts:list'),
|
||||
add: (args?: { runtime?: 'host' | 'wsl'; wslDistro?: string | null }): Promise<unknown> =>
|
||||
ipcRenderer.invoke('claudeAccounts:add', args),
|
||||
cancelPendingLogin: (): Promise<boolean> =>
|
||||
ipcRenderer.invoke('claudeAccounts:cancelPendingLogin'),
|
||||
reauthenticate: (args: { accountId: string }): Promise<unknown> =>
|
||||
ipcRenderer.invoke('claudeAccounts:reauthenticate', args),
|
||||
remove: (args: { accountId: string }): Promise<unknown> =>
|
||||
|
||||
Reference in New Issue
Block a user