From 0d14e33436591563ea4ef60abf9ddfd04b70020e Mon Sep 17 00:00:00 2001 From: Fabien O'Carroll Date: Fri, 18 Sep 2020 12:45:51 +0100 Subject: [PATCH] Updated members-api to accept a TokenProvider no-issue This paves the way for Ghost to be able to pass in a custom token provider which will handle the shortening of tokens and making them single use. --- ghost/members-api/index.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/ghost/members-api/index.js b/ghost/members-api/index.js index b4d12484d9..7f3ad6162b 100644 --- a/ghost/members-api/index.js +++ b/ghost/members-api/index.js @@ -18,7 +18,7 @@ module.exports = function MembersApi({ auth: { allowSelfSignup = true, getSigninURL, - secret + tokenProvider }, paymentConfig, mail: { @@ -93,7 +93,7 @@ module.exports = function MembersApi({ const magicLinkService = new MagicLink({ transporter, - tokenProvider: new MagicLink.JWTTokenProvider(secret), + tokenProvider, getSigninURL, getText, getHTML,