Redigera

Dela via


LoopbackClient class

Methods

closeServer()

Close the loopback server

getRedirectUri()

Get the port that the loopback server is running on

listenForAuthCode(string, string)

Spins up a loopback server which returns the server response when the localhost redirectUri is hit

Method Details

closeServer()

Close the loopback server

function closeServer()

getRedirectUri()

Get the port that the loopback server is running on

function getRedirectUri(): string

Returns

string

listenForAuthCode(string, string)

Spins up a loopback server which returns the server response when the localhost redirectUri is hit

function listenForAuthCode(successTemplate?: string, errorTemplate?: string): Promise<ServerAuthorizationCodeResponse>

Parameters

successTemplate

string

errorTemplate

string

Returns

Promise<ServerAuthorizationCodeResponse>