mirror of
https://github.com/tiennm99/ccs.git
synced 2026-07-16 10:16:49 +00:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user