You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm using your great wiki section to implement my own cloud API client, and I came across a couple of errors in the authentication section, both to do with what you call the "refresh" function. Both of these things are correct in your PHP example but not in the documentation.
Firstly, it should be a POST, not a GET.
Second, it doesn't just update the token, it always produces a new token, and it's always necessary to do. You don't seem to be able to use the token from the first API call ("device" token, per the URL) as the Bearer for the storage API, you have to "refresh" it to get a second token ("user" token per the URL). It isn't a matter of expiration.
Thanks for the excellent writeup!
The text was updated successfully, but these errors were encountered:
Hi,
I'm using your great wiki section to implement my own cloud API client, and I came across a couple of errors in the authentication section, both to do with what you call the "refresh" function. Both of these things are correct in your PHP example but not in the documentation.
Firstly, it should be a POST, not a GET.
Second, it doesn't just update the token, it always produces a new token, and it's always necessary to do. You don't seem to be able to use the token from the first API call ("device" token, per the URL) as the Bearer for the storage API, you have to "refresh" it to get a second token ("user" token per the URL). It isn't a matter of expiration.
Thanks for the excellent writeup!
The text was updated successfully, but these errors were encountered: