Obtaining a Music User Token manually

Is there any sample code for obtaining a Music User Token using the JSON web api directly, without using MusicKit? I am writing a utility in C++ to interact with Apple Music, and was not able to figure out how this works from the MusicKit or MusicKit for Android docs. Thank you.

Replies

Did you ever resolve this? I'm encountering a similar issue. I want to generate a user token from our back end (in Azure) and pass that token to an Android based smart speaker that will play the music. I'm not seeing an easy way to generate a user token with the user's apple credentials.

Ran into the same problem - trying to generate and feed back into a python program. Any luck?

This is so unprofessional from Apple, they don't document their User Auth flow ...