global update and global fix
This commit is contained in:
9
apps/sso-core/src/domain/bot/bot-debug-log.util.ts
Normal file
9
apps/sso-core/src/domain/bot/bot-debug-log.util.ts
Normal file
@@ -0,0 +1,9 @@
|
||||
export function formatTokenForLog(value: string, chunkSize = 48) {
|
||||
const normalized = value.trim();
|
||||
if (!normalized) return '(empty)';
|
||||
const chunks: string[] = [];
|
||||
for (let index = 0; index < normalized.length; index += chunkSize) {
|
||||
chunks.push(normalized.slice(index, index + chunkSize));
|
||||
}
|
||||
return chunks.join('\n');
|
||||
}
|
||||
Reference in New Issue
Block a user