Skip to content

Commit

Permalink
fix electron user login
Browse files Browse the repository at this point in the history
  • Loading branch information
imolorhe committed Feb 8, 2024
1 parent 525e08f commit f98a506
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions packages/altair-electron/src/auth/server/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,7 @@ import { randomBytes } from 'crypto';
import { getStaticDirectory } from '../../utils';
import { session, shell } from 'electron';
import { getCSP, INLINE, SELF } from 'csp-header';
import getPort from 'get-port';

export const IPC_SET_CUSTOM_TOKEN_EVENT = 'auth:set-custom-token';

Expand Down Expand Up @@ -119,7 +120,6 @@ export class AuthServer {
}

private async getAvailablePort() {
const getPort = await import('get-port');
return getPort.default({ port: this.port });
return getPort({ port: this.port });
}
}

0 comments on commit f98a506

Please sign in to comment.