LoopbackClient class
Methods
close |
Close the loopback server |
get |
Get the port that the loopback server is running on |
listen |
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>