- Unable to authentication with token
Re: Unable to authentication with token
toggle quoted messageShow quoted text
Have you tried using curl, like:
Where TOKEN is the token (don't forget the colon at the end)?
On Mon, Nov 9, 2020 at 2:08 PM Justin Capogna <jcapogna@...
I'm using the /login endpoint login with email/password and then I get the token from that. I'm passing that token in a header like "Authorization: Basic <token>" to the /getuser endpoint, but /getuser returns 400 and I get there error "unauthorized_error".
I've been able to successfully use the API with cookies, so I'm confident I have the endpoints right, but I'm trying to do it with tokens instead.
Do the tokens work for Basic Auth? Am I missing something else?
Join email@example.com to automatically receive all group messages.