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§
- Pending
Page - 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.