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#

VariantMeaning
AutoLoopback when a browser can be opened, else paste-back.
LoopbackOpen the browser and receive the code on http://127.0.0.1:<port>/callback.
PastePrint 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 SignInMethod
  • impl Copy for SignInMethod
  • impl Debug for SignInMethod
  • impl Default for SignInMethod
  • impl Eq for SignInMethod
  • impl PartialEq for SignInMethod