From d3ec69b3b5531e39d6eb066f7665198240db9166 Mon Sep 17 00:00:00 2001 From: Franklin Date: Wed, 20 Sep 2023 17:50:26 -0400 Subject: [PATCH] Added dao todos --- src/dao/token.rs | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/src/dao/token.rs b/src/dao/token.rs index 362df2f..00c6060 100644 --- a/src/dao/token.rs +++ b/src/dao/token.rs @@ -15,4 +15,7 @@ pub async fn update_token(conn: &PgPool, token_id: &i32, auth_token: String) -> WHERE id = $1 RETURNING *;"#) .bind(token_id).bind(auth_token).bind(Utc::now()) .fetch_one(conn).await -} \ No newline at end of file +} +// TODO: add validate_user token (user_id, auth_token) +// Update user token (refresh_token, user_id) +// Delete user token (token_id) \ No newline at end of file