Restructure verification code prompting to open a window instead
Also, prevent multiple calls to `sign_in` from racing with each other.
This commit is contained in:
parent
19cc86a2d4
commit
99cca59c84
5 changed files with 203 additions and 222 deletions
|
@ -26,7 +26,7 @@ pub enum SignInInitiateResult {
|
|||
PromptUserDeviceFlow(PromptUserDeviceFlow),
|
||||
}
|
||||
|
||||
#[derive(Debug, Serialize, Deserialize)]
|
||||
#[derive(Clone, Debug, Eq, PartialEq, Serialize, Deserialize)]
|
||||
#[serde(rename_all = "camelCase")]
|
||||
pub struct PromptUserDeviceFlow {
|
||||
pub user_code: String,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue