I'd like to know how to use a session token in order to login into a Flarum instance.
I have made a POST request to the /api/token endpoint, and it returned me the session token of the selected user (not an admin).
{
"token": "iDGBPJz29IL2opWMTo07qTs5VxMV4FnZsSqAxt2U",
"userId": 12
}
What I aim is to use this token to create an automatic login session. Any hints on how to do that?
Thank you all for the patience and the attention. I've been learning a lot these days and Flarum is having an important role in this journey.