add using refresh token to get access token

This commit is contained in:
2025-10-12 07:55:58 +02:00
parent c937ae8d83
commit 67302965d8
10 changed files with 111 additions and 32 deletions

View File

@@ -26,7 +26,7 @@ pub async fn hello_rooms() -> String {
pub async fn fake_db_update(
State(state): State<AppState>,
AuthClaims { user_id, hotel_id, username }: AuthClaims,
AuthClaims { user_id, hotel_id }: AuthClaims,
Path(room_id): Path<i32>,
UpdateRoomPayload(payload): UpdateRoomPayload,
) -> impl IntoResponse {
@@ -52,7 +52,7 @@ pub async fn fake_db_update(
pub async fn clean_db_update(
State(state): State<AppState>,
Path(room_id): Path<i32>,
AuthClaims { user_id, hotel_id, username }: AuthClaims,
AuthClaims { user_id, hotel_id }: AuthClaims,
UpdateRoomPayload(payload): UpdateRoomPayload,
) -> impl IntoResponse {