Brewskey / spark-server

An API compatible open source server for interacting with devices speaking the spark-protocol
https://www.particle.io/
GNU Affero General Public License v3.0
54 stars 27 forks source link

Import script does not convert accessToken expire dates to new format #232

Closed wdimmit closed 7 years ago

wdimmit commented 7 years ago

The import script creates access token entries that look like:

{ "accessToken" : "e32a71605130bfda97d51494a9ee71292c3029e8", "accessTokenExpiresAt" : "2017-05-01T14:14:02.721Z", "refreshToken" : "0b854ade57160e9b24bb309b1b99f9d62f5f80a1", "refreshTokenExpiresAt" : "2017-02-14T14:14:02.721Z", "scope" : "true" }

This causes requests made with that token via REST interface to fail until the date is converted to the new format.