Hi, I'm a newbie here, trying to write a module. I would like my mod to obtain an access token for my user and pass it to a reactive component for access to webservices.
I see how to manually obtain a token in the Admin screens (and it works fine). I can call a webservice and Moodle serves it nicely. But I can't find any docs on how my mod can obtain a token, and not even sure where in Moodle to go looking for the code that I could study.
I'm guessing this is how Moodle Mobile works, but my user is already logged in. I just want to generate a token.
Thanks in advance.