We don't know if there's a device ID

This commit is contained in:
Olivier 'reivilibre
2025-11-27 15:13:24 +00:00
parent 5c7ff7b8dc
commit ffec0020a4

View File

@@ -123,7 +123,8 @@ pub async fn get(
user: &session.user,
is_interactive: true,
login_type: CompatLoginType::WebSso,
// TODO should we predict a replacement?
// We don't know if there's going to be a replacement until we received the device ID,
// which happens too late.
session_replaced: false,
session_counts,
requester: mas_policy::Requester {
@@ -254,7 +255,8 @@ pub async fn post(
is_interactive: true,
login_type: CompatLoginType::WebSso,
session_counts,
// TODO should we predict a replacement?
// We don't know if there's going to be a replacement until we received the device ID,
// which happens too late.
session_replaced: false,
requester: mas_policy::Requester {
ip_address: activity_tracker.ip(),