v2 ESlint fixes (#1403)

Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
This commit is contained in:
Konstantin Konstantinov 2026-01-20 14:21:53 +02:00 • committed by GitHub
commit 9fc7e28f48
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
2 changed files with 1672 additions and 1346 deletions

View file

@ -202,7 +202,7 @@ export function createDemoAuth(options: CreateDemoAuthOptions) {
loginPage,
codeExpiresIn: 600, // 10 minutes
accessTokenExpiresIn: 3600, // 1 hour
refreshTokenExpiresIn: 604800, // 7 days
refreshTokenExpiresIn: 604_800, // 7 days
defaultScope: 'openid',
scopes: ['openid', 'profile', 'email', 'offline_access'],
allowDynamicClientRegistration: true,

View file

@ -218,10 +218,11 @@ export function setupAuthServer(options: SetupAuthServerOptions): void {
});
// Start the auth server
const authPort = parseInt(authServerUrl.port, 10);
const authPort = Number.parseInt(authServerUrl.port, 10);
authApp.listen(authPort, (error?: Error) => {
if (error) {
console.error('Failed to start auth server:', error);
// eslint-disable-next-line unicorn/no-process-exit
process.exit(1);
}
console.log(`OAuth Authorization Server listening on port ${authPort}`);