protonfile-auth 1.6.4 → 1.6.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (50) hide show
  1. package/README.md +22 -18
  2. package/lib/Entities/OTP.d.ts +10 -10
  3. package/lib/Entities/OTP.js +48 -48
  4. package/lib/Entities/Session.d.ts +10 -10
  5. package/lib/Entities/Session.js +36 -36
  6. package/lib/Entities/TempToken.d.ts +5 -5
  7. package/lib/Entities/TempToken.js +22 -22
  8. package/lib/Entities/User.d.ts +9 -9
  9. package/lib/Entities/User.js +34 -34
  10. package/lib/controllers/change_password.d.ts +3 -3
  11. package/lib/controllers/change_password.js +59 -58
  12. package/lib/controllers/login.d.ts +3 -3
  13. package/lib/controllers/login.js +40 -40
  14. package/lib/controllers/logout.d.ts +3 -3
  15. package/lib/controllers/logout.js +26 -26
  16. package/lib/controllers/qr.d.ts +3 -3
  17. package/lib/controllers/qr.js +55 -55
  18. package/lib/controllers/refresh_token.d.ts +3 -3
  19. package/lib/controllers/refresh_token.js +43 -43
  20. package/lib/controllers/register.d.ts +3 -3
  21. package/lib/controllers/register.js +57 -58
  22. package/lib/controllers/registerOtp.d.ts +3 -3
  23. package/lib/controllers/registerOtp.js +30 -30
  24. package/lib/index.d.ts +31 -29
  25. package/lib/index.js +58 -58
  26. package/lib/middlewares/appendSessionCache.d.ts +4 -4
  27. package/lib/middlewares/appendSessionCache.js +7 -7
  28. package/lib/middlewares/appendUms.d.ts +4 -4
  29. package/lib/middlewares/appendUms.js +7 -7
  30. package/lib/middlewares/verifyToken.d.ts +4 -4
  31. package/lib/middlewares/verifyToken.js +34 -34
  32. package/lib/services/OTPVacuum.d.ts +7 -7
  33. package/lib/services/OTPVacuum.js +31 -31
  34. package/lib/services/SessionCache.d.ts +8 -8
  35. package/lib/services/SessionCache.js +25 -25
  36. package/lib/services/SessionCleaner.d.ts +7 -7
  37. package/lib/services/SessionCleaner.js +35 -35
  38. package/lib/services/TempToken.d.ts +12 -9
  39. package/lib/services/TempToken.js +47 -40
  40. package/lib/services/UMS.d.ts +12 -12
  41. package/lib/services/UMS.js +31 -31
  42. package/lib/services/auth.d.ts +8 -8
  43. package/lib/services/auth.js +60 -60
  44. package/lib/services/mail/index.d.ts +36 -36
  45. package/lib/services/mail/index.js +101 -101
  46. package/lib/services/mail/templates/default.d.ts +2 -2
  47. package/lib/services/mail/templates/default.js +268 -268
  48. package/lib/services/session.d.ts +10 -10
  49. package/lib/services/session.js +81 -81
  50. package/package.json +52 -46
@@ -1,268 +1,268 @@
1
- "use strict";
2
- Object.defineProperty(exports, "__esModule", { value: true });
3
- exports.default = `
4
- <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
- <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
6
- <head>
7
- <!--[if gte mso 9]>
8
- <xml>
9
- <o:OfficeDocumentSettings>
10
- <o:AllowPNG/>
11
- <o:PixelsPerInch>96</o:PixelsPerInch>
12
- </o:OfficeDocumentSettings>
13
- </xml>
14
- <![endif]-->
15
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
16
- <meta name="viewport" content="width=device-width, initial-scale=1.0">
17
- <meta name="x-apple-disable-message-reformatting">
18
- <!--[if !mso]><!--><meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]-->
19
- <title></title>
20
-
21
- <style type="text/css">
22
- table, td { color: #000000; } a { color: #0000ee; text-decoration: underline; }
23
- @media only screen and (min-width: 520px) {
24
- .u-row {
25
- width: 500px !important;
26
- }
27
- .u-row .u-col {
28
- vertical-align: top;
29
- }
30
-
31
- .u-row .u-col-100 {
32
- width: 500px !important;
33
- }
34
-
35
- }
36
-
37
- @media (max-width: 520px) {
38
- .u-row-container {
39
- max-width: 100% !important;
40
- padding-left: 0px !important;
41
- padding-right: 0px !important;
42
- }
43
- .u-row .u-col {
44
- min-width: 320px !important;
45
- max-width: 100% !important;
46
- display: block !important;
47
- }
48
- .u-row {
49
- width: calc(100% - 40px) !important;
50
- }
51
- .u-col {
52
- width: 100% !important;
53
- }
54
- .u-col > div {
55
- margin: 0 auto;
56
- }
57
- }
58
- body {
59
- margin: 0;
60
- padding: 0;
61
- }
62
-
63
- table,
64
- tr,
65
- td {
66
- vertical-align: top;
67
- border-collapse: collapse;
68
- }
69
-
70
- p {
71
- margin: 0;
72
- }
73
-
74
- .ie-container table,
75
- .mso-container table {
76
- table-layout: fixed;
77
- }
78
-
79
- * {
80
- line-height: inherit;
81
- }
82
-
83
- a[x-apple-data-detectors='true'] {
84
- color: inherit !important;
85
- text-decoration: none !important;
86
- }
87
-
88
- </style>
89
-
90
-
91
-
92
- </head>
93
-
94
- <body class="clean-body u_body" style="margin: 0;padding: 0;-webkit-text-size-adjust: 100%;background-color: #ffffff;color: #000000">
95
- <!--[if IE]><div class="ie-container"><![endif]-->
96
- <!--[if mso]><div class="mso-container"><![endif]-->
97
- <table style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;min-width: 320px;Margin: 0 auto;background-color: #ffffff;width:100%" cellpadding="0" cellspacing="0">
98
- <tbody>
99
- <tr style="vertical-align: top">
100
- <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
101
- <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color: #ffffff;"><![endif]-->
102
-
103
-
104
- <div class="u-row-container" style="padding: 0px;background-color: transparent">
105
- <div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 500px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
106
- <div style="border-collapse: collapse;display: table;width: 100%;background-color: transparent;">
107
- <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px;"><tr style="background-color: transparent;"><![endif]-->
108
-
109
- <!--[if (mso)|(IE)]><td align="center" width="500" style="width: 500px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;" valign="top"><![endif]-->
110
- <div class="u-col u-col-100" style="max-width: 320px;min-width: 500px;display: table-cell;vertical-align: top;">
111
- <div style="width: 100% !important;">
112
- <!--[if (!mso)&(!IE)]><!--><div style="padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;"><!--<![endif]-->
113
-
114
- <table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
115
- <tbody>
116
- <tr>
117
- <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">
118
-
119
- <table width="100%" cellpadding="0" cellspacing="0" border="0">
120
- <tr>
121
- <td style="padding-right: 0px;padding-left: 0px;" align="left">
122
-
123
- <img align="left" border="0" src="https://www.jz-software.com/archive/protonfile-logo.png" alt="" title="" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: inline-block !important;border: none;height: auto;float: none;width: 100%;max-width: 100px;" width="100"/>
124
-
125
- </td>
126
- </tr>
127
- </table>
128
-
129
- </td>
130
- </tr>
131
- </tbody>
132
- </table>
133
-
134
- <!--[if (!mso)&(!IE)]><!--></div><!--<![endif]-->
135
- </div>
136
- </div>
137
- <!--[if (mso)|(IE)]></td><![endif]-->
138
- <!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
139
- </div>
140
- </div>
141
- </div>
142
-
143
-
144
-
145
- <div class="u-row-container" style="padding: 0px;background-color: transparent">
146
- <div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 500px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
147
- <div style="border-collapse: collapse;display: table;width: 100%;background-color: transparent;">
148
- <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px;"><tr style="background-color: transparent;"><![endif]-->
149
-
150
- <!--[if (mso)|(IE)]><td align="center" width="500" style="width: 500px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
151
- <div class="u-col u-col-100" style="max-width: 320px;min-width: 500px;display: table-cell;vertical-align: top;">
152
- <div style="width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
153
- <!--[if (!mso)&(!IE)]><!--><div style="padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->
154
-
155
- <table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
156
- <tbody>
157
- <tr>
158
- <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">
159
-
160
- <table height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;border-top: 1px solid #BBBBBB;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%">
161
- <tbody>
162
- <tr style="vertical-align: top">
163
- <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;font-size: 0px;line-height: 0px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%">
164
- <span>&#160;</span>
165
- </td>
166
- </tr>
167
- </tbody>
168
- </table>
169
-
170
- </td>
171
- </tr>
172
- </tbody>
173
- </table>
174
-
175
- <!--[if (!mso)&(!IE)]><!--></div><!--<![endif]-->
176
- </div>
177
- </div>
178
- <!--[if (mso)|(IE)]></td><![endif]-->
179
- <!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
180
- </div>
181
- </div>
182
- </div>
183
-
184
-
185
-
186
- <div class="u-row-container" style="padding: 0px;background-color: transparent">
187
- <div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 500px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
188
- <div style="border-collapse: collapse;display: table;width: 100%;background-color: transparent;">
189
- <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px;"><tr style="background-color: transparent;"><![endif]-->
190
-
191
- <!--[if (mso)|(IE)]><td align="center" width="500" style="width: 500px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
192
- <div class="u-col u-col-100" style="max-width: 320px;min-width: 500px;display: table-cell;vertical-align: top;">
193
- <div style="width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
194
- <!--[if (!mso)&(!IE)]><!--><div style="padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->
195
-
196
- <table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
197
- <tbody>
198
- <tr>
199
- <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">
200
-
201
- <div style="line-height: 140%; text-align: left; word-wrap: break-word;">
202
- <p style="font-size: 14px; line-height: 140%;">Dear <a rel="noopener" href="mailto:{{email}}" target="_blank">{{email}}</a>,</p>
203
- <p style="font-size: 14px; line-height: 140%;">&nbsp;</p>
204
- <p style="font-size: 14px; line-height: 140%;">{{body}}</p>
205
- <p style="font-size: 14px; line-height: 140%;">&nbsp;</p>
206
- <p style="font-size: 14px; line-height: 140%;">For any questions email us at info@jz-software.com</p>
207
- </div>
208
-
209
- </td>
210
- </tr>
211
- </tbody>
212
- </table>
213
-
214
- <table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
215
- <tbody>
216
- <tr>
217
- <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">
218
-
219
- <table height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;border-top: 1px solid #BBBBBB;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%">
220
- <tbody>
221
- <tr style="vertical-align: top">
222
- <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;font-size: 0px;line-height: 0px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%">
223
- <span>&#160;</span>
224
- </td>
225
- </tr>
226
- </tbody>
227
- </table>
228
-
229
- </td>
230
- </tr>
231
- </tbody>
232
- </table>
233
-
234
- <table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
235
- <tbody>
236
- <tr>
237
- <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">
238
-
239
- <div style="line-height: 140%; text-align: left; word-wrap: break-word;">
240
- <p style="font-size: 14px; line-height: 140%;">JZ-Software</p>
241
- </div>
242
-
243
- </td>
244
- </tr>
245
- </tbody>
246
- </table>
247
-
248
- <!--[if (!mso)&(!IE)]><!--></div><!--<![endif]-->
249
- </div>
250
- </div>
251
- <!--[if (mso)|(IE)]></td><![endif]-->
252
- <!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
253
- </div>
254
- </div>
255
- </div>
256
-
257
-
258
- <!--[if (mso)|(IE)]></td></tr></table><![endif]-->
259
- </td>
260
- </tr>
261
- </tbody>
262
- </table>
263
- <!--[if mso]></div><![endif]-->
264
- <!--[if IE]></div><![endif]-->
265
- </body>
266
-
267
- </html>
268
- `;
1
+ "use strict";
2
+ Object.defineProperty(exports, "__esModule", { value: true });
3
+ exports.default = `
4
+ <!DOCTYPE HTML PUBLIC "-//W3C//DTD XHTML 1.0 Transitional //EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
5
+ <html xmlns="http://www.w3.org/1999/xhtml" xmlns:v="urn:schemas-microsoft-com:vml" xmlns:o="urn:schemas-microsoft-com:office:office">
6
+ <head>
7
+ <!--[if gte mso 9]>
8
+ <xml>
9
+ <o:OfficeDocumentSettings>
10
+ <o:AllowPNG/>
11
+ <o:PixelsPerInch>96</o:PixelsPerInch>
12
+ </o:OfficeDocumentSettings>
13
+ </xml>
14
+ <![endif]-->
15
+ <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
16
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
17
+ <meta name="x-apple-disable-message-reformatting">
18
+ <!--[if !mso]><!--><meta http-equiv="X-UA-Compatible" content="IE=edge"><!--<![endif]-->
19
+ <title></title>
20
+
21
+ <style type="text/css">
22
+ table, td { color: #000000; } a { color: #0000ee; text-decoration: underline; }
23
+ @media only screen and (min-width: 520px) {
24
+ .u-row {
25
+ width: 500px !important;
26
+ }
27
+ .u-row .u-col {
28
+ vertical-align: top;
29
+ }
30
+
31
+ .u-row .u-col-100 {
32
+ width: 500px !important;
33
+ }
34
+
35
+ }
36
+
37
+ @media (max-width: 520px) {
38
+ .u-row-container {
39
+ max-width: 100% !important;
40
+ padding-left: 0px !important;
41
+ padding-right: 0px !important;
42
+ }
43
+ .u-row .u-col {
44
+ min-width: 320px !important;
45
+ max-width: 100% !important;
46
+ display: block !important;
47
+ }
48
+ .u-row {
49
+ width: calc(100% - 40px) !important;
50
+ }
51
+ .u-col {
52
+ width: 100% !important;
53
+ }
54
+ .u-col > div {
55
+ margin: 0 auto;
56
+ }
57
+ }
58
+ body {
59
+ margin: 0;
60
+ padding: 0;
61
+ }
62
+
63
+ table,
64
+ tr,
65
+ td {
66
+ vertical-align: top;
67
+ border-collapse: collapse;
68
+ }
69
+
70
+ p {
71
+ margin: 0;
72
+ }
73
+
74
+ .ie-container table,
75
+ .mso-container table {
76
+ table-layout: fixed;
77
+ }
78
+
79
+ * {
80
+ line-height: inherit;
81
+ }
82
+
83
+ a[x-apple-data-detectors='true'] {
84
+ color: inherit !important;
85
+ text-decoration: none !important;
86
+ }
87
+
88
+ </style>
89
+
90
+
91
+
92
+ </head>
93
+
94
+ <body class="clean-body u_body" style="margin: 0;padding: 0;-webkit-text-size-adjust: 100%;background-color: #ffffff;color: #000000">
95
+ <!--[if IE]><div class="ie-container"><![endif]-->
96
+ <!--[if mso]><div class="mso-container"><![endif]-->
97
+ <table style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;min-width: 320px;Margin: 0 auto;background-color: #ffffff;width:100%" cellpadding="0" cellspacing="0">
98
+ <tbody>
99
+ <tr style="vertical-align: top">
100
+ <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top">
101
+ <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td align="center" style="background-color: #ffffff;"><![endif]-->
102
+
103
+
104
+ <div class="u-row-container" style="padding: 0px;background-color: transparent">
105
+ <div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 500px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
106
+ <div style="border-collapse: collapse;display: table;width: 100%;background-color: transparent;">
107
+ <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px;"><tr style="background-color: transparent;"><![endif]-->
108
+
109
+ <!--[if (mso)|(IE)]><td align="center" width="500" style="width: 500px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;" valign="top"><![endif]-->
110
+ <div class="u-col u-col-100" style="max-width: 320px;min-width: 500px;display: table-cell;vertical-align: top;">
111
+ <div style="width: 100% !important;">
112
+ <!--[if (!mso)&(!IE)]><!--><div style="padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;"><!--<![endif]-->
113
+
114
+ <table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
115
+ <tbody>
116
+ <tr>
117
+ <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">
118
+
119
+ <table width="100%" cellpadding="0" cellspacing="0" border="0">
120
+ <tr>
121
+ <td style="padding-right: 0px;padding-left: 0px;" align="left">
122
+
123
+ <img align="left" border="0" src="https://www.jz-software.com/archive/protonfile-logo.png" alt="" title="" style="outline: none;text-decoration: none;-ms-interpolation-mode: bicubic;clear: both;display: inline-block !important;border: none;height: auto;float: none;width: 100%;max-width: 100px;" width="100"/>
124
+
125
+ </td>
126
+ </tr>
127
+ </table>
128
+
129
+ </td>
130
+ </tr>
131
+ </tbody>
132
+ </table>
133
+
134
+ <!--[if (!mso)&(!IE)]><!--></div><!--<![endif]-->
135
+ </div>
136
+ </div>
137
+ <!--[if (mso)|(IE)]></td><![endif]-->
138
+ <!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
139
+ </div>
140
+ </div>
141
+ </div>
142
+
143
+
144
+
145
+ <div class="u-row-container" style="padding: 0px;background-color: transparent">
146
+ <div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 500px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
147
+ <div style="border-collapse: collapse;display: table;width: 100%;background-color: transparent;">
148
+ <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px;"><tr style="background-color: transparent;"><![endif]-->
149
+
150
+ <!--[if (mso)|(IE)]><td align="center" width="500" style="width: 500px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
151
+ <div class="u-col u-col-100" style="max-width: 320px;min-width: 500px;display: table-cell;vertical-align: top;">
152
+ <div style="width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
153
+ <!--[if (!mso)&(!IE)]><!--><div style="padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->
154
+
155
+ <table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
156
+ <tbody>
157
+ <tr>
158
+ <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">
159
+
160
+ <table height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;border-top: 1px solid #BBBBBB;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%">
161
+ <tbody>
162
+ <tr style="vertical-align: top">
163
+ <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;font-size: 0px;line-height: 0px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%">
164
+ <span>&#160;</span>
165
+ </td>
166
+ </tr>
167
+ </tbody>
168
+ </table>
169
+
170
+ </td>
171
+ </tr>
172
+ </tbody>
173
+ </table>
174
+
175
+ <!--[if (!mso)&(!IE)]><!--></div><!--<![endif]-->
176
+ </div>
177
+ </div>
178
+ <!--[if (mso)|(IE)]></td><![endif]-->
179
+ <!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
180
+ </div>
181
+ </div>
182
+ </div>
183
+
184
+
185
+
186
+ <div class="u-row-container" style="padding: 0px;background-color: transparent">
187
+ <div class="u-row" style="Margin: 0 auto;min-width: 320px;max-width: 500px;overflow-wrap: break-word;word-wrap: break-word;word-break: break-word;background-color: transparent;">
188
+ <div style="border-collapse: collapse;display: table;width: 100%;background-color: transparent;">
189
+ <!--[if (mso)|(IE)]><table width="100%" cellpadding="0" cellspacing="0" border="0"><tr><td style="padding: 0px;background-color: transparent;" align="center"><table cellpadding="0" cellspacing="0" border="0" style="width:500px;"><tr style="background-color: transparent;"><![endif]-->
190
+
191
+ <!--[if (mso)|(IE)]><td align="center" width="500" style="width: 500px;padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;" valign="top"><![endif]-->
192
+ <div class="u-col u-col-100" style="max-width: 320px;min-width: 500px;display: table-cell;vertical-align: top;">
193
+ <div style="width: 100% !important;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;">
194
+ <!--[if (!mso)&(!IE)]><!--><div style="padding: 0px;border-top: 0px solid transparent;border-left: 0px solid transparent;border-right: 0px solid transparent;border-bottom: 0px solid transparent;border-radius: 0px;-webkit-border-radius: 0px; -moz-border-radius: 0px;"><!--<![endif]-->
195
+
196
+ <table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
197
+ <tbody>
198
+ <tr>
199
+ <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">
200
+
201
+ <div style="line-height: 140%; text-align: left; word-wrap: break-word;">
202
+ <p style="font-size: 14px; line-height: 140%;">Dear <a rel="noopener" href="mailto:{{email}}" target="_blank">{{email}}</a>,</p>
203
+ <p style="font-size: 14px; line-height: 140%;">&nbsp;</p>
204
+ <p style="font-size: 14px; line-height: 140%;">{{body}}</p>
205
+ <p style="font-size: 14px; line-height: 140%;">&nbsp;</p>
206
+ <p style="font-size: 14px; line-height: 140%;">For any questions email us at info@jz-software.com</p>
207
+ </div>
208
+
209
+ </td>
210
+ </tr>
211
+ </tbody>
212
+ </table>
213
+
214
+ <table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
215
+ <tbody>
216
+ <tr>
217
+ <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">
218
+
219
+ <table height="0px" align="center" border="0" cellpadding="0" cellspacing="0" width="100%" style="border-collapse: collapse;table-layout: fixed;border-spacing: 0;mso-table-lspace: 0pt;mso-table-rspace: 0pt;vertical-align: top;border-top: 1px solid #BBBBBB;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%">
220
+ <tbody>
221
+ <tr style="vertical-align: top">
222
+ <td style="word-break: break-word;border-collapse: collapse !important;vertical-align: top;font-size: 0px;line-height: 0px;mso-line-height-rule: exactly;-ms-text-size-adjust: 100%;-webkit-text-size-adjust: 100%">
223
+ <span>&#160;</span>
224
+ </td>
225
+ </tr>
226
+ </tbody>
227
+ </table>
228
+
229
+ </td>
230
+ </tr>
231
+ </tbody>
232
+ </table>
233
+
234
+ <table style="font-family:arial,helvetica,sans-serif;" role="presentation" cellpadding="0" cellspacing="0" width="100%" border="0">
235
+ <tbody>
236
+ <tr>
237
+ <td style="overflow-wrap:break-word;word-break:break-word;padding:10px;font-family:arial,helvetica,sans-serif;" align="left">
238
+
239
+ <div style="line-height: 140%; text-align: left; word-wrap: break-word;">
240
+ <p style="font-size: 14px; line-height: 140%;">JZ-Software</p>
241
+ </div>
242
+
243
+ </td>
244
+ </tr>
245
+ </tbody>
246
+ </table>
247
+
248
+ <!--[if (!mso)&(!IE)]><!--></div><!--<![endif]-->
249
+ </div>
250
+ </div>
251
+ <!--[if (mso)|(IE)]></td><![endif]-->
252
+ <!--[if (mso)|(IE)]></tr></table></td></tr></table><![endif]-->
253
+ </div>
254
+ </div>
255
+ </div>
256
+
257
+
258
+ <!--[if (mso)|(IE)]></td></tr></table><![endif]-->
259
+ </td>
260
+ </tr>
261
+ </tbody>
262
+ </table>
263
+ <!--[if mso]></div><![endif]-->
264
+ <!--[if IE]></div><![endif]-->
265
+ </body>
266
+
267
+ </html>
268
+ `;
@@ -1,10 +1,10 @@
1
- import { Response } from 'express';
2
- import { JwtPayload } from 'jsonwebtoken';
3
- import { Session } from '../Entities/Session';
4
- export declare const createSessionToken: (payload: any, version?: number | undefined) => string;
5
- export declare const verifySessionToken: (token: string) => string | JwtPayload;
6
- export declare const bumpSessionToken: (jwtSession: JwtPayload) => Promise<string>;
7
- export declare const compareSessionTokenVersion: (jwtSession: JwtPayload) => Promise<void>;
8
- export declare const setSessionCookie: (res: Response, value: string) => Promise<void>;
9
- export declare const clearSessionCookie: (res: Response) => Promise<Response<any, Record<string, any>>>;
10
- export declare const deleteSession: (session_id: string) => Promise<Session>;
1
+ import { Response } from 'express';
2
+ import { JwtPayload } from 'jsonwebtoken';
3
+ import { Session } from '../Entities/Session';
4
+ export declare const createSessionToken: (payload: any, version?: number | undefined) => string;
5
+ export declare const verifySessionToken: (token: string) => string | JwtPayload;
6
+ export declare const bumpSessionToken: (jwtSession: JwtPayload) => Promise<string>;
7
+ export declare const compareSessionTokenVersion: (jwtSession: JwtPayload) => Promise<void>;
8
+ export declare const setSessionCookie: (res: Response, value: string) => Promise<void>;
9
+ export declare const clearSessionCookie: (res: Response) => Promise<Response<any, Record<string, any>>>;
10
+ export declare const deleteSession: (session_id: string) => Promise<Session>;