-
Notifications
You must be signed in to change notification settings - Fork 127
Clients created with 'fromApplicationOnlyAuth' fail requests with 400, 401 #349
Comments
I think I fixed this bug, check this commit: ebd3ab1
|
Any update on this? Setting |
@oakleyaidan21 |
@iMrDJAi when I set |
@oakleyaidan21 Right! just wanted to be sure.
However, I fixed that in the upcoming snoowrap v2.0. Work in progress... |
The initial call to fromApplicationOnlyAuth succeeds, however the retrieved credentials appear to be invalid.
The initial access_token request seems to have changed to return both an access token and a refresh token, however the constructor does not expect to receive a refresh duration. The next attempt to call any API will trigger a refresh (as to the client it appears the access token is no longer valid.) The refresh fails w/ 400. Unfortunately, patching to fix this issue does not help, as any request made using the supposedly valid auth token is failed with 401.
As a workaround, clients created with the 'permanent: false' parameter work correctly.
The text was updated successfully, but these errors were encountered: