How to add custom query parameter in discourse connect url?

We’re trying to integrate discourse with our app that uses React on the frontend and Django on the backend.

I want to pass the username or the token of the logged in user in the discourse connect url along with the other query parameter.

Is there any other way we can do this?

Just wondering if you found a solution to this. I need to do the same thing.