How to get token or login/password of already logged in user?

How to get token or login/password of already logged in user?

by Rustam Rakhimov -
Number of replies: 0

Hello!

I want to embed to Moodle course Unity WebGL mini-games as quizzes/questions and to exchange data with Moodle such as attempts, correct/wrong answers and so on. To do so I must send requests to Moodle Web Services from Unity code. But how can I get user token or user login/password when he is already logged in? 


Thanks in advance.

Average of ratings: -