0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-01-20 22:42:53 -05:00
ghost/core/server
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
..
api 🐛 send correct token expiration time (#7547) 2016-10-12 10:19:33 +02:00
apps 🎉 Middleware refactor: Give the API its own express App (#7537) 2016-10-11 10:36:00 +02:00
auth 🎉 Middleware refactor: Give the API its own express App (#7537) 2016-10-11 10:36:00 +02:00
config Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00
controllers Move internal tags out of labs (#7519) 2016-10-10 09:51:03 +01:00
data 🎨 replace process.env.NODE_ENV usages by config.get('env') (#7544) 2016-10-11 13:53:52 +01:00
events post-scheduling 2016-06-14 10:52:13 +02:00
helpers 🎨 replace process.env.NODE_ENV usages by config.get('env') (#7544) 2016-10-11 13:53:52 +01:00
logging 🐛 logging: error output format (#7546) 2016-10-11 19:03:14 +01:00
mail 🎨 change how we get and set config 2016-09-20 15:59:34 +01:00
middleware 🎉 Middleware refactor: Give the API its own express App (#7537) 2016-10-11 10:36:00 +02:00
models 🎨 replace process.env.NODE_ENV usages by config.get('env') (#7544) 2016-10-11 13:53:52 +01:00
permissions Error creation (#7477) 2016-10-06 13:27:35 +01:00
routes 🎉 Middleware refactor: Give the API its own express App (#7537) 2016-10-11 10:36:00 +02:00
scheduling Error creation (#7477) 2016-10-06 13:27:35 +01:00
storage Error creation (#7477) 2016-10-06 13:27:35 +01:00
translations Migration: New database versioning (#7499) 2016-10-06 14:50:55 +01:00
utils 🎨 replace process.env.NODE_ENV usages by config.get('env') (#7544) 2016-10-11 13:53:52 +01:00
views Switch to new native system font stack (#7219) 2016-08-18 20:29:46 +01:00
errors.js 🎨 optimise error to inherit from in GhostError prototype (#7529) 2016-10-10 18:30:30 +01:00
filters.js
ghost-server.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
i18n.js improvement: general fixes 2016-06-01 07:07:20 +02:00
index.js Error creation (#7477) 2016-10-06 13:27:35 +01:00
overrides.js 🛠 update lodash,knex and bookshelf to latest versions 2016-09-26 10:20:55 +02:00
update-check.js Misc Middleware cleanup (#7526) 2016-10-10 21:14:32 +02:00