Skip to main content

Function: startLoopbackOAuthServer()

startLoopbackOAuthServer(args?: { port?: number; redirectHost?: string; redirectPath?: string; }): Promise<LoopbackOAuthServer>

Defined in: electron/services/cloud/oauth/LoopbackOAuthServer.ts:198

Starts a loopback OAuth server.

Parameters

args?

port?

number

redirectHost?

string

redirectPath?

string

Optional path portion of the redirect URI.

Remarks

Some providers (e.g. Google) recommend loopback redirect URIs without an explicit path (e.g. http://127.0.0.1:{port}). Others require a fixed callback path. This option supports both patterns.

Returns

Promise<LoopbackOAuthServer>

Remarks

The server listens on both IPv4 and IPv6 loopback addresses to support environments where localhost resolves to ::1.