You would need to issue accessToken fromt he user instead - which can be done via Session Register api Swagger UI but this means you’ll need to do this everytime for every user - can you share more about your use case and specifically why do you need to create comment from the server instead of sdk?
Our use-case is a feature where user sends a tip (money) to the author of the content. Ideally we don’t want to submit the comment until the payment has been completed and verified. The verification happens on server side.
Sounds like we can do this, we will give this a try:
User sends their accessToken to server
User completes the payment flow
Server verifies the payment
Server uses session register API to identify as the user
Server submits the comment, including the tipping metadata (money amount etc)
Thank you for your help. If there’s some other better way to do this kind of feature, please let us know.