Oc_authtoken Expiry

How long does it take before an Authtoken expires? I’ve looked around through the Nextcloud doc and could not find anything about the expiry of generated app passwords, but when I looked through the database table oc_authtoken I saw an expires field which is set to null. How is this field being updated and used?

last_activity: 1641481385
last_check: 1641481385
scope: NULL
expires: NULL

We want to ensure that these tokens expire to limit our security risks. I planned to run a script that reads the oc_authtable and revoke these tokens after six months of the creation date and wondered if there was a more straightforward way of doing it via Nextcloud directly instead of the DB.