Graphorin API reference v0.1.0
Graphorin API reference / @graphorin/security / / startLocalCallbackServer
Function: startLocalCallbackServer()
ts
function startLocalCallbackServer(options?): Promise<LocalCallbackServer>;Defined in: packages/security/src/oauth/callback-server.ts:85
Bind a localhost callback server on a random port in options.portRange. The handle exposes the chosen redirect URI and a waitForCallback(signal) helper that resolves once the browser hits the path.
Parameters
| Parameter | Type |
|---|---|
options | LocalCallbackServerOptions |
Returns
Promise<LocalCallbackServer>