diff options
author | rtkay123 <dev@kanjala.com> | 2025-07-26 10:19:44 +0200 |
---|---|---|
committer | rtkay123 <dev@kanjala.com> | 2025-07-26 10:19:44 +0200 |
commit | 8398104fd50b236619a0c20b7c9b7991ea855917 (patch) | |
tree | e75b5dfed6e159f3db98fcc5860a16b3bc42f2d2 /crates/auth/src/server/routes | |
parent | 768f732322298f5ecc4dc473fed8cdf5271460d9 (diff) | |
download | sellershut-8398104fd50b236619a0c20b7c9b7991ea855917.tar.bz2 sellershut-8398104fd50b236619a0c20b7c9b7991ea855917.zip |
feat(api): connect to auth service
Diffstat (limited to 'crates/auth/src/server/routes')
-rw-r--r-- | crates/auth/src/server/routes/authorised.rs | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/crates/auth/src/server/routes/authorised.rs b/crates/auth/src/server/routes/authorised.rs index 50fcfc8..83f73cf 100644 --- a/crates/auth/src/server/routes/authorised.rs +++ b/crates/auth/src/server/routes/authorised.rs @@ -91,6 +91,8 @@ pub async fn login_authorised( .await .context("failed to deserialise response as JSON")?; + dbg!(&user_data); + let user_data: User = serde_json::from_value(user_data)?; if !user_data.verified { @@ -122,10 +124,8 @@ pub async fn login_authorised( .await?; let user = if let Some(user) = user { - println!("some"); user } else { - println!("none"); let uuid = uuid::Uuid::now_v7(); let user = sqlx::query_as!( DbUser, @@ -170,7 +170,6 @@ pub async fn login_authorised( let claims = Claims { sub: user.id, - // Mandatory expiry time as UTC timestamp exp: exp.unix_timestamp(), iss: "sellershut".to_owned(), sid: session_id.to_string(), |