SignInMethod
How sign_in (and open_checkout when signed out) gets the sign-in code.
On this page
How sign_in (and open_checkout when signed out) gets the sign-in code.
use sponsorkit::SignInMethod;
pub enum SignInMethod {
Auto,
Loopback,
Paste,
}Variants#
| Variant | Meaning |
|---|---|
Auto | Loopback when a browser can be opened, else paste-back. |
Loopback | Open the browser and receive the code on http://127.0.0.1:<port>/callback. |
Paste | Print a URL and read the code the page displays (headless machines). |
Auto#
Loopback when a browser can be opened, else paste-back.
Loopback#
Open the browser and receive the code on http://127.0.0.1:<port>/callback.
Paste#
Print a URL and read the code the page displays (headless machines).
Trait implementations#
impl Clone for SignInMethodimpl Copy for SignInMethodimpl Debug for SignInMethodimpl Default for SignInMethodimpl Eq for SignInMethodimpl PartialEq for SignInMethod