Fixed refresh missing email issue

This commit is contained in:
Benjamin Sherriff
2023-10-18 21:37:59 -04:00
parent 41522885b1
commit 616a43dba9
5 changed files with 26 additions and 27 deletions

View File

@@ -152,7 +152,7 @@ impl FromRequest for JwtAuth {
Ok(result) => result,
Err(_) => {
return ready(Err(ActixError::from(ServiceError {
status: 404,
status: 401,
message: format!("Access token was not found")
})))
}
@@ -163,7 +163,7 @@ impl FromRequest for JwtAuth {
ready(Ok(JwtAuth { token: access_token_uuid, user: user.into() }))
}
Err(_) => return ready(Err(ActixError::from(ServiceError {
status: 404,
status: 401,
message: format!("User was not found")
})))
}