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.
This commit is contained in:
Fabien O'Carroll 2020-09-18 12:45:51 +01:00 committed by Fabien 'egg' O'Carroll
parent 42c2468314
commit 0d14e33436

View File

@ -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,