Ghost/core/server/api
Kevin Ansfield 06151ef5ac 🐛 send correct token expiration time (#7547)
no issue

When using Ghost OAuth, exchanging the authorization code for an access token was returning a token along with an `expires_in` property containing a JavaScript date representation rather than the number of seconds the token is valid for. This was resulting in the client expecting it's access token to be valid until the year 48796(!) and so never attempting to refresh it's access_token.

- return token expiration time of 3600 seconds / 1hr
2016-10-12 10:19:33 +02:00
..
app.js 🎉 Middleware refactor: Give the API its own express App (#7537) 2016-10-11 10:36:00 +02:00
authentication.js 🐛 send correct token expiration time (#7547) 2016-10-12 10:19:33 +02:00
clients.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
configuration.js 🎨 replace process.env.NODE_ENV usages by config.get('env') (#7544) 2016-10-11 13:53:52 +01:00
db.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
index.js Ghost OAuth (#7451) 2016-09-30 12:45:59 +01:00
invites.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
mail.js 🎨 replace process.env.NODE_ENV usages by config.get('env') (#7544) 2016-10-11 13:53:52 +01:00
notifications.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
posts.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
roles.js Refactor handlePermissions 2015-08-11 16:03:57 +02:00
schedules.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
settings.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
slack.js Slack integration 2016-05-08 12:49:15 +02:00
slugs.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
subscribers.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
tags.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
themes.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
upload.js feature: upload validation middleware (#7208) 2016-08-18 20:25:51 +01:00
users.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
utils.js Error creation (#7477) 2016-10-06 13:27:35 +01:00