From 6c65e97e49d1d56380aa7d71abb0394b08ff60ca Mon Sep 17 00:00:00 2001 From: Owen Jacobson Date: Sun, 24 Aug 2025 16:00:45 -0400 Subject: Return an identity, rather than the parts of an identity, when validating an identity token. This is a small refactoring that's been possible for a while, and we only just noticed. --- src/user/handlers/login/test.rs | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/user/handlers/login/test.rs') diff --git a/src/user/handlers/login/test.rs b/src/user/handlers/login/test.rs index bdd1957..cb387ad 100644 --- a/src/user/handlers/login/test.rs +++ b/src/user/handlers/login/test.rs @@ -30,14 +30,13 @@ async fn correct_credentials() { // Verify the semantics - let validated_at = fixtures::now(); - let (_, validated_login) = app + let validated = app .tokens() - .validate(&secret, &validated_at) + .validate(&secret, &fixtures::now()) .await .expect("identity secret is valid"); - assert_eq!(name, validated_login.name); + assert_eq!(name, validated.user.name); } #[tokio::test] -- cgit v1.2.3