How to pass an Auth token to RocketChat API
japrogramer opened this issue · 2 comments
japrogramer commented
Im looking to use the oauth token to then call /api/v1/me to register a user.
How do I make that call to RocketChat with the Auth Token instead of using username and password?
jadolg commented
You could create a RocketChat object with no credentials and then set the auth_token
for your object manually. There's no method for that because you can just directly access the attribute of the object.
japrogramer commented
thanks, that makes sense.