feat: add a way to revoke refresh_tokens using device_name
This commit is contained in:
parent
a89d705239
commit
22ab3d8a04
2 changed files with 123 additions and 0 deletions
|
@ -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> {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue