From 86555bd1f89154394f4e997786896e710dd2ba1b Mon Sep 17 00:00:00 2001 From: Daniel Hader Date: Fri, 22 May 2026 16:57:58 -0500 Subject: JWT encoding and minor cosmetic changes --- src/routes/auth.rs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'src/routes/auth.rs') diff --git a/src/routes/auth.rs b/src/routes/auth.rs index 0b17ef4..64ada2b 100644 --- a/src/routes/auth.rs +++ b/src/routes/auth.rs @@ -58,7 +58,7 @@ pub async fn login( }; let token= encode(&Header::default(), &claims, &state.api_key) - .map_err(|_| RouteError::Internal("failed to encode jwt".into()))?; + .map_err(|e| RouteError::Internal(format!("failed to encode jwt: {e}")))?; Ok(Json(LoginResponse { token })) } -- cgit v1.2.3