API to retrieve JWT Token
Hi,
I am trying to create a simple application to integrate stripe with StreamElements Tip function instead of just relying on paypal so that viewers may donate via other means. However, currently I notice that the JWT Token for the Stream Elements ID resets every 2 weeks, for security purposes which is fine, however, that would mean that I would have to login to my application and change the JWT Token that I saved in the environment file, which is a bit of a hassle. I was wondering if there is another way of retrieving the JWT Token dynamically instead of having to login to Stream Elements and copy-paste the token into my environment file.
Thanks for your help!
Cheers,
Daryln
-
Hey Daryln!
We can inquire with our Dev team to see if it is possible to help with the Dynamic JWT token, as it does seem like it could be a little bit of a headache to have to keep updating it.
In the meantime, have you swapped your tipping page over to SE.Pay? SE.Pay helps give your viewers more ways to pay, outside of credit cards and PayPal.
You can learn more about it here: https://support.streamelements.com/hc/en-us/articles/10474426240914-SE-Pay-Overview
Enjoy!
DeQuat0 -
Following up here Daryln!
I was told by our devs that you may be better suited to request an OAuth2 request. You can find out more information on how to apply for one here:
https://dev.streamelements.com/docs/api-docs/cd02cda5171ea-o-auth2
Good luck!0 -
Question since I was told that oauth is no longer supported and sadly the support not responding to anything and if it takes a month almost I am hoping to find help here.
I am building a subathon engine for streamers to have easy access for everything subathon related in one single spot and I have 3 streamers that are already interested in that service and of course they want stream elements as one of the functions.
The problem is that the JWT token resets and that means streamers would have to reenter a token every 2 weeks, while not all subathons last over 2 weeks there are some that do and need to account for them.
Is there anything I can do?
I would HIGHLY prefer oauth api tokens but yeah…
0
Please sign in to leave a comment.
Comments
3 comments