refactor(oauth): align box chars with CCS standard and add JSDoc

Use Unicode box characters (╔═╗║╚╝) per design guidelines and
add JSDoc to parseCallbackUrl helper function.
This commit is contained in:
kaitranntt
2026-02-02 23:41:13 -05:00
parent 441870d38e
commit 258220b7e8
2 changed files with 6 additions and 4 deletions
+3 -3
View File
@@ -241,9 +241,9 @@ async function handlePasteCallbackMode(
// Display auth URL in box
console.log('');
console.log(' +--------------------------------------------------------------+');
console.log(' | Open this URL in any browser: |');
console.log(' +--------------------------------------------------------------+');
console.log(' ╔══════════════════════════════════════════════════════════════╗');
console.log(' Open this URL in any browser: ');
console.log(' ╚══════════════════════════════════════════════════════════════╝');
console.log('');
console.log(` ${authUrl}`);
console.log('');
@@ -630,7 +630,9 @@ router.get('/:provider/status', async (req: Request, res: Response): Promise<voi
});
/**
* Parse callback URL to extract code and state parameters.
* Parse OAuth callback URL to extract code and state parameters.
* @param url - The callback URL to parse
* @returns Parsed components (code, state) or empty object on failure
*/
function parseCallbackUrl(url: string): { code?: string; state?: string } {
try {