We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 59a597f commit 5af4975Copy full SHA for 5af4975
src/internet_identity/src/main.rs
@@ -1022,9 +1022,12 @@ mod v2_api {
1022
// Return session info if caller matches confirmed session
1023
tentative_device_registration::get_confirmed_session(identity_number)
1024
.is_some_and(|confirmed_session| confirmed_session == caller())
1025
- .then_some(AuthnMethodSessionInfo {
1026
- name: state::anchor(identity_number).name(),
1027
- created_at: state::anchor(identity_number).created_at(),
+ .then(|| {
+ let anchor = state::anchor(identity_number);
+ AuthnMethodSessionInfo {
1028
+ name: anchor.name(),
1029
+ created_at: anchor.created_at(),
1030
+ }
1031
})
1032
}
1033
0 commit comments