mirror of
https://github.com/tiennm99/ccs.git
synced 2026-10-13 00:14:15 +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:
1 parent
441870d38e
commit
258220b7e8
2 files changed
+6
-4
No files matched your search
@@ -241,9 +241,9 @@ async function handlePasteCallbackMode(
|
|||||||
|
|
||||||
// Display auth URL in box
|
// Display auth URL in box
|
||||||
console.log('');
|
console.log('');
|
||||||
console.log(' +--------------------------------------------------------------+');
|
console.log(' ╔══════════════════════════════════════════════════════════════╗');
|
||||||
console.log(' | Open this URL in any browser: |');
|
console.log(' ║ Open this URL in any browser: ║');
|
||||||
console.log(' +--------------------------------------------------------------+');
|
console.log(' ╚══════════════════════════════════════════════════════════════╝');
|
||||||
console.log('');
|
console.log('');
|
||||||
console.log(` ${authUrl}`);
|
console.log(` ${authUrl}`);
|
||||||
console.log('');
|
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 } {
|
function parseCallbackUrl(url: string): { code?: string; state?: string } {
|
||||||
try {
|
try {
|
||||||
|
|||||||
Reference in new issue
Block a user