@accounts/server
Advanced tools
Comparing version 0.32.0 to 0.33.0
@@ -8,2 +8,3 @@ import { EmailTemplateType } from './email-template-type'; | ||
passwordChanged: EmailTemplateType; | ||
magicLink: EmailTemplateType; | ||
} |
@@ -26,2 +26,7 @@ "use strict"; | ||
}, | ||
magicLink: { | ||
subject: () => 'Your magic link', | ||
text: (user, url) => `To log in please click on this link: ${url}`, | ||
html: (user, url) => `To log in please <a href="${url}">click here</a>.`, | ||
}, | ||
}; | ||
@@ -28,0 +33,0 @@ exports.sendMail = async (mail) => { |
{ | ||
"name": "@accounts/server", | ||
"version": "0.32.0", | ||
"version": "0.33.0", | ||
"description": "Fullstack authentication and accounts-management", | ||
@@ -47,5 +47,5 @@ "main": "lib/index.js", | ||
"dependencies": { | ||
"@accounts/types": "^0.32.0", | ||
"@accounts/types": "^0.33.0", | ||
"@types/jsonwebtoken": "8.3.9", | ||
"emittery": "0.5.1", | ||
"emittery": "0.8.1", | ||
"jsonwebtoken": "8.5.1", | ||
@@ -64,3 +64,3 @@ "jwt-decode": "3.1.2", | ||
}, | ||
"gitHead": "c7c1459b081f46d97f5c3d1148a391bcb572f7c8" | ||
"gitHead": "2703f3ef8c11803f584c9560affcae50ef7d830d" | ||
} |
@@ -9,2 +9,3 @@ import { EmailTemplateType } from './email-template-type'; | ||
passwordChanged: EmailTemplateType; | ||
magicLink: EmailTemplateType; | ||
} |
@@ -34,2 +34,8 @@ import { User } from '@accounts/types'; | ||
}, | ||
magicLink: { | ||
subject: () => 'Your magic link', | ||
text: (user: User, url: string) => `To log in please click on this link: ${url}`, | ||
html: (user: User, url: string) => `To log in please <a href="${url}">click here</a>.`, | ||
}, | ||
}; | ||
@@ -36,0 +42,0 @@ |
Sorry, the diff of this file is not supported yet
109474
76
2201
+ Added@accounts/types@0.33.2(transitive)
+ Addedemittery@0.8.1(transitive)
+ Addedtslib@2.3.1(transitive)
- Removed@accounts/types@0.32.0(transitive)
- Removedemittery@0.5.1(transitive)
Updated@accounts/types@^0.33.0
Updatedemittery@0.8.1