diff options
| author | Daniel Hader <[email protected]> | 2026-05-22 16:57:58 -0500 |
|---|---|---|
| committer | Daniel Hader <[email protected]> | 2026-05-22 16:57:58 -0500 |
| commit | 86555bd1f89154394f4e997786896e710dd2ba1b (patch) | |
| tree | fe269559b6b4191a6f5ecd84465bb066f63a4614 /src/routes/auth.rs | |
| parent | 92436c8bb9eafcc56219e784f8b374edfb1907a3 (diff) | |
JWT encoding and minor cosmetic changes
Diffstat (limited to 'src/routes/auth.rs')
| -rw-r--r-- | src/routes/auth.rs | 2 |
1 files changed, 1 insertions, 1 deletions
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 })) } |
