mirror of
https://github.com/TryGhost/Ghost.git
synced 2024-12-25 11:55:03 +03:00
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:
parent
42c2468314
commit
0d14e33436
@ -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,
|
||||
|
Loading…
Reference in New Issue
Block a user