0
Fork 0
mirror of https://github.com/TryGhost/Ghost.git synced 2025-02-03 23:00:14 -05:00

Updated layer1 to pass fresh param to gateway

no-issue

This is needed so that we can request a brand new token from layer1, in
the instance of knowing user data has changed, we can have a token whihc
reflects it.
This commit is contained in:
Fabien O'Carroll 2019-03-19 13:59:43 +01:00
parent 5dfcbb6b5e
commit 709a1cce4e

View file

@ -25,8 +25,8 @@ module.exports = function layer1(options) {
});
});
function getToken({audience}) {
return loadGateway.then(gatewayFn('getToken', {audience}));
function getToken({audience, fresh}) {
return loadGateway.then(gatewayFn('getToken', {audience, fresh}));
}
function signout() {