feat: setup wizard shell
This commit is contained in:
@@ -3,10 +3,10 @@ use serde::Deserialize;
|
||||
use crate::{api, query};
|
||||
|
||||
#[derive(Clone)]
|
||||
struct CreateDeviceCode;
|
||||
pub struct CreateDeviceCode;
|
||||
|
||||
#[derive(Deserialize)]
|
||||
struct DeviceCodeResponse {
|
||||
pub struct DeviceCodeResponse {
|
||||
device_code: String,
|
||||
user_code: String,
|
||||
vertification_uri: String,
|
||||
@@ -20,7 +20,7 @@ impl query::QueryFn for CreateDeviceCode {
|
||||
type Context = api::QueryContext;
|
||||
|
||||
fn key(&self) -> &'static str {
|
||||
todo!()
|
||||
"auth.device_code"
|
||||
}
|
||||
|
||||
async fn run(&self, c: &Self::Context) -> Result<Self::Data, Self::Error> {
|
||||
|
||||
Reference in New Issue
Block a user