Hi Moodle community.
I am writing because I am experimenting and odd behaviour in a Moodle 4.3 version.
I am using a web service wich creates an attendance session for each class.
The problem is that the token is getting deleted after a few days of being used.
I have checked upon creation of the token, that a valid future date is correctly set.
Every now and then I receive notifications from staff that attendance sessions are not being created and when I check in the token administration page (/admin/webservice/tokens.php)I find that the generated token is missing.
I have also tried to look for the token in the mdl_external_tokens with the same luck. It gets deleted for any reason.
Does anyone know why this could happen?
Thanks and regards.
Tomas.