blob: ddf048d30c2c61d0a280741381ed2572eeb1f775 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
|
use axum::{
extract::{Query, State},
response::IntoResponse,
};
use axum_extra::{TypedHeader, headers};
use serde::Deserialize;
use crate::{error::AppError, server::routes::Provider, state::AppHandle};
#[derive(Debug, Deserialize)]
pub struct AuthRequest {
provider: Provider,
code: String,
state: String,
}
async fn login_authorized(
Query(query): Query<AuthRequest>,
State(state): State<AppHandle>,
TypedHeader(cookies): TypedHeader<headers::Cookie>,
) -> Result<impl IntoResponse, AppError> {
Ok("")
}
|