mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-16 06:14:17 +00:00
fix(cliproxy): use management oauth-callback in paste flow
This commit is contained in:
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');
|
||||
});
|
||||
});
|
||||
Reference in new issue
Block a user