v2 ESlint fixes (#1403)
Co-authored-by: Matt <77928207+mattzcarey@users.noreply.github.com>
This commit is contained in:
parent
9296459ac0
commit
9fc7e28f48
2 changed files with 1672 additions and 1346 deletions
|
|
@ -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,
|
||||
|
|
|
|||
|
|
@ -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}`);
|
||||
|
|
|
|||
Loading…
Reference in a new issue