fix(cliproxy): use management oauth-callback in paste flow

This commit is contained in:
Brian Le committed 2026-03-03 17:59:10 -05:00
1 parent 6fcd924b1c
commit fa027022a8
3 files changed
+14 -3

No files matched your search

@@ -1,5 +1,8 @@
import { describe, expect, it } from 'bun:test';
import { getManagementAuthUrlPath } from '../../../src/cliproxy/auth/auth-types';
import {
getManagementAuthUrlPath,
getManagementOAuthCallbackPath,
} from '../../../src/cliproxy/auth/auth-types';
describe('auth-types management auth-url path', () => {
it('maps providers to CLIProxyAPI management auth-url routes', () => {
@@ -16,4 +19,8 @@ describe('auth-types management auth-url path', () => {
expect(getManagementAuthUrlPath('ghcp')).toBe('/v0/management/github-auth-url?is_webui=true');
expect(getManagementAuthUrlPath('kiro')).toBe('/v0/management/kiro-auth-url?is_webui=true');
});
it('uses CLIProxyAPI management oauth-callback route', () => {
expect(getManagementOAuthCallbackPath()).toBe('/v0/management/oauth-callback');
});
});