add using refresh token to get access token
This commit is contained in:
@@ -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 {
|
||||
|
||||
|
||||
Reference in New Issue
Block a user