User token expires?

User token expires?

by Allan Silva -
Number of replies: 1
Hi, I am accessing the Moodle through a mobile application, but returns the error: 

 {"Code": "accessexception", "Message", "Access Control Exception"} 

 The user authenticates through the application, the token and the UserId are saved for other calls.

 It is possible that the user token expires? 

 I've read the documentation Moodle about possible causes, but did not identify the cause likely is causing this error.


 Cheers, 

 Allan Silva

Average of ratings: -
In reply to Allan Silva

Re: User token expires?

by Juan Leyva -
Picture of Core developers Picture of Moodle HQ Picture of Particularly helpful Moodlers Picture of Plugin developers Picture of Testers

Hi,

Use token expires after 6 months, you should enable debugging in your site so maybe a complete error trace is returned in the WS response

Regards, Juan