Skip to main content

Module callback

Module callback 

Source
Expand description

The loopback server that receives an OAuth redirect, and the race between it and a pasted code. Port of oauth/callback-server.ts and utils/oauth-page.ts.

Structs§

PendingPage
The browser’s page for a callback whose sign-in finishes first.
Reply
The reply to one request, and what it means for the sign-in.
Server
A running loopback server. Dropping it closes the listener and every open connection.

Functions§

error_page
pi’s failure page.
query
The first value of the query parameter name.
success_page
pi’s success page.

Type Aliases§

Handler
Answers one request, given its method, its URL and whether the sign-in is already handled: an earlier reply ended the wait, or the waiter cancelled it.