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,