File tree Expand file tree Collapse file tree 2 files changed +3
-7
lines changed
Expand file tree Collapse file tree 2 files changed +3
-7
lines changed Original file line number Diff line number Diff line change @@ -82,7 +82,7 @@ export class HttpServer {
8282 * @param host Host name.
8383 * @returns A promise that resolves when the server has been started.
8484 */
85- async start ( port ?: number , host ?: string ) : Promise < Server > {
85+ async start ( port ?: number , host ?: string ) : Promise < void > {
8686 if ( this . listening ) {
8787 throw new Error ( 'Server has already been started.' ) ;
8888 }
Original file line number Diff line number Diff line change 2020
2121import { readFileSync } from 'node:fs' ;
2222import type { AddressInfo } from 'node:net' ;
23- import type { Server } from 'node:http' ;
2423
2524import { HttpServer } from './http-server' ;
2625import { OAuth2Issuer } from './oauth2-issuer' ;
@@ -109,12 +108,9 @@ export class OAuth2Server extends HttpServer {
109108 * @param host Host name.
110109 * @returns A promise that resolves when the server has been started.
111110 */
112- override async start ( port ?: number , host ?: string ) : Promise < Server > {
113- const server = await super . start ( port , host ) ;
114-
111+ override async start ( port ?: number , host ?: string ) : Promise < void > {
112+ await super . start ( port , host ) ;
115113 this . issuer . url ??= super . buildIssuerUrl ( host , this . address ( ) . port ) ;
116-
117- return server ;
118114 }
119115
120116 /**
You can’t perform that action at this time.
0 commit comments