fix(lint): enable restrict-template-expressions with safe conversions
Enable @typescript-eslint/restrict-template-expressions with options allowing numbers, booleans, and nullish values. Fix Error objects in template literals with String() conversion: - FlexibleAuthGuard.extractMtlsAuth: authorizationError - MTLSGuard.canActivate: authorizationError 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude Opus 4.5 <noreply@anthropic.com>
This commit is contained in:
parent
5b2bcaf657
commit
9be5bd0e1b
2 changed files with 2 additions and 2 deletions
|
|
@ -248,7 +248,7 @@ export class FlexibleAuthGuard implements CanActivate {
|
|||
// Check if the certificate is authorized (signed by trusted CA)
|
||||
if (!socket.authorized) {
|
||||
const authError = socket.authorizationError;
|
||||
this.logger.warn(`Client certificate not authorized: ${authError}`);
|
||||
this.logger.warn(`Client certificate not authorized: ${String(authError)}`);
|
||||
return null;
|
||||
}
|
||||
|
||||
|
|
|
|||
|
|
@ -106,7 +106,7 @@ export class MtlsGuard implements CanActivate {
|
|||
// Check if the certificate is authorized (signed by trusted CA)
|
||||
if (!socket.authorized) {
|
||||
const authError = socket.authorizationError;
|
||||
this.logger.warn(`Client certificate not authorized: ${authError}`);
|
||||
this.logger.warn(`Client certificate not authorized: ${String(authError)}`);
|
||||
// Allow fall-through to API key auth
|
||||
return true;
|
||||
}
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue