Closed mdouchement closed 2 years ago
StandardNotes behavior have changed.
Qccording to the doc: https://docs.standardnotes.com/specification/auth/#refreshing-tokens
498 Expired Access Token
{
"error": {
"tag": "expired-access-token",
"message": "The provided access token has expired."
}
}
Qccording to the doc, refresh token process have really changed:
POST /session/token/refresh HTTP/1.1
Host: sync.standardnotes.org
Authorization: Bearer <access token>
{
"refresh_token": "R_xxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx"
}
200 OK
{
"token": "xxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx",
"session": {
"refresh_expiration": 1583020800,
"refresh_token": "xxxxxxx-xxxx-Mxxx-Nxxx-xxxxxxxxxxxx",
}
}
/session/refresh
to /session/token/refresh
/session/refresh
...Source code client session management https://github.com/standardnotes/snjs/tree/master/packages/snjs/lib/Services/Session
thanks for staying on top of this!
Fixed 🎉