Access token clarification #196
Unanswered
spire-mike
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Can somebody please explain how authorization is supposed to work with this library? Do I need to pass in the
access_token
parameter myself, or does the library handle generating it for me using therefresh_token
in themy_credentials
? I set up my credentials in code like the docs mention:Then I attempt to make a call like this:
However, I receive a 401 unauthorized error. If I use the refresh token and same credentials to manually make an HTTP request and retrieve an access token, and then pass that token into the call, it returns a response successfully:
I am confused whether or not I am supposed to be keeping track of access tokens myself, or if the library does this for me using th refresh token I provide.
Can somebody please help?
Beta Was this translation helpful? Give feedback.
All reactions