feat: add a way to revoke refresh_tokens using device_name

This commit is contained in:
Radical 2025-05-01 20:19:39 +02:00
parent a89d705239
commit 22ab3d8a04
2 changed files with 123 additions and 0 deletions

View file

@ -7,12 +7,14 @@ use uuid::Uuid;
mod register;
mod login;
mod refresh;
mod revoke;
pub fn web() -> Scope {
web::scope("/auth")
.service(register::res)
.service(login::response)
.service(refresh::res)
.service(revoke::res)
}
pub async fn check_access_token<'a>(access_token: String, pool: &'a sqlx::Pool<Postgres>) -> Result<Uuid, HttpResponse> {