diff options
| author | Owen Jacobson <owen@grimoire.ca> | 2025-08-24 16:00:45 -0400 |
|---|---|---|
| committer | Owen Jacobson <owen@grimoire.ca> | 2025-08-25 22:42:49 -0400 |
| commit | 6c65e97e49d1d56380aa7d71abb0394b08ff60ca (patch) | |
| tree | fddb2511233a89c43ac9e4d45ba37bd333dd11e5 /src/test/fixtures | |
| parent | 5bc9dc01618421596d65a7046e46559a872c6693 (diff) | |
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.
Diffstat (limited to 'src/test/fixtures')
| -rw-r--r-- | src/test/fixtures/identity.rs | 7 |
1 files changed, 2 insertions, 5 deletions
diff --git a/src/test/fixtures/identity.rs b/src/test/fixtures/identity.rs index 84e1cf6..29ff5ae 100644 --- a/src/test/fixtures/identity.rs +++ b/src/test/fixtures/identity.rs @@ -21,13 +21,10 @@ pub async fn from_cookie( validated_at: &RequestedAt, ) -> Identity { let secret = cookie.secret().expect("identity token has a secret"); - let (token, user) = app - .tokens() + app.tokens() .validate(&secret, validated_at) .await - .expect("always validates newly-issued secret"); - - Identity { token, user } + .expect("always validates newly-issued secret") } pub async fn logged_in( |
