Authtokens are not automatically deleted

Nextcloud version (eg, 20.0.5): 24.0.4

Operating system and version (eg, Ubuntu 20.04): Debian 11

Apache or nginx version (eg, Apache 2.4.25): 2.4.45

PHP version (eg, 7.4): 7.4

LDAP authentication to out Samba 4 AD

The issue you are facing:

Our Nextcloud instance do not remove the old tokens in devices and sessions.

All our users have hundrets of sessions like:

‘Thunderbird CardBook/82.9’ and ‘iOS/15.6.1 (19G82) dataaccessd/1.0 ‚, ‚Mozilla/5.0 (Macintosh) mirall/2.6.1stable (build 20191105) (Nextcloud) ‚, ‚iOS/15.6.1 (19G82) dataaccessd/1.0‘

(select login_name,name,count(id) from oc_authtoken group by login_name,name order by login_name,name; )

What should we do?