@flink-app/generic-auth-plugin 0.12.1-alpha.7 → 0.13.0

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 (84) hide show
  1. package/.flink/generatedHandlers.ts +1 -1
  2. package/.flink/generatedJobs.ts +1 -1
  3. package/.flink/generatedRepos.ts +1 -1
  4. package/.flink/schemas/schemas.json +1 -643
  5. package/.flink/schemas/schemas.ts +1 -105
  6. package/.flink/start.ts +2 -1
  7. package/CHANGELOG.md +15 -0
  8. package/dist/.flink/generatedHandlers.js +1 -1
  9. package/dist/.flink/generatedJobs.js +1 -1
  10. package/dist/.flink/generatedRepos.js +1 -1
  11. package/dist/.flink/schemas/schemas.d.ts +0 -104
  12. package/dist/.flink/schemas/schemas.js +1 -1
  13. package/dist/.flink/schemas/schemas.json +1 -643
  14. package/dist/.flink/start.d.ts +2 -0
  15. package/dist/.flink/start.js +2 -1
  16. package/dist/src/coreFunctions.d.ts +5 -5
  17. package/dist/src/coreFunctions.js +31 -14
  18. package/dist/src/genericAuthContext.d.ts +8 -5
  19. package/dist/src/genericAuthPluginOptions.d.ts +6 -1
  20. package/dist/src/handlers/Management/DeleteUserByUserid.d.ts +0 -1
  21. package/dist/src/handlers/Management/DeleteUserByUserid.js +3 -4
  22. package/dist/src/handlers/Management/GetSchema.d.ts +0 -1
  23. package/dist/src/handlers/Management/GetSchema.js +3 -4
  24. package/dist/src/handlers/Management/GetUser.d.ts +0 -1
  25. package/dist/src/handlers/Management/GetUser.js +3 -4
  26. package/dist/src/handlers/Management/GetUserByUserid.d.ts +0 -1
  27. package/dist/src/handlers/Management/GetUserByUserid.js +3 -4
  28. package/dist/src/handlers/Management/GetUserViewByUserid.d.ts +0 -1
  29. package/dist/src/handlers/Management/GetUserViewByUserid.js +3 -4
  30. package/dist/src/handlers/Management/PutUserPasswordByUserid.d.ts +0 -1
  31. package/dist/src/handlers/Management/PutUserPasswordByUserid.js +3 -4
  32. package/dist/src/handlers/Management/PutUserProfileByUserid.d.ts +0 -1
  33. package/dist/src/handlers/Management/PutUserProfileByUserid.js +16 -9
  34. package/dist/src/handlers/Management/PutUserProfileByUseridAppend.d.ts +0 -1
  35. package/dist/src/handlers/Management/PutUserProfileByUseridAppend.js +3 -4
  36. package/dist/src/handlers/Management/PutUserRolesByUserid.d.ts +0 -1
  37. package/dist/src/handlers/Management/PutUserRolesByUserid.js +3 -4
  38. package/dist/src/handlers/Management/PutUserUsernameByUserid.d.ts +0 -1
  39. package/dist/src/handlers/Management/PutUserUsernameByUserid.js +3 -4
  40. package/dist/src/handlers/UserCreate.d.ts +0 -1
  41. package/dist/src/handlers/UserCreate.js +6 -7
  42. package/dist/src/handlers/UserLogin.d.ts +0 -1
  43. package/dist/src/handlers/UserLogin.js +42 -11
  44. package/dist/src/handlers/UserLoginByToken.d.ts +0 -1
  45. package/dist/src/handlers/UserLoginByToken.js +3 -4
  46. package/dist/src/handlers/UserPasswordPut.d.ts +0 -1
  47. package/dist/src/handlers/UserPasswordPut.js +3 -4
  48. package/dist/src/handlers/UserPasswordResetComplete.d.ts +0 -1
  49. package/dist/src/handlers/UserPasswordResetComplete.js +3 -4
  50. package/dist/src/handlers/UserPasswordResetForm.js +6 -6
  51. package/dist/src/handlers/UserPasswordResetStart.d.ts +0 -1
  52. package/dist/src/handlers/UserPasswordResetStart.js +3 -4
  53. package/dist/src/handlers/UserProfileGet.d.ts +0 -1
  54. package/dist/src/handlers/UserProfileGet.js +3 -4
  55. package/dist/src/handlers/UserProfilePut.d.ts +0 -1
  56. package/dist/src/handlers/UserProfilePut.js +11 -7
  57. package/dist/src/handlers/UserPushRegisterToken.d.ts +0 -1
  58. package/dist/src/handlers/UserPushRegisterToken.js +4 -5
  59. package/dist/src/handlers/UserPushRemoveToken.d.ts +0 -1
  60. package/dist/src/handlers/UserPushRemoveToken.js +3 -4
  61. package/dist/src/handlers/UserToken.d.ts +0 -1
  62. package/dist/src/handlers/UserToken.js +3 -4
  63. package/dist/src/index.js +2 -2
  64. package/dist/src/init.js +2 -3
  65. package/dist/src/schemas/User.d.ts +2 -1
  66. package/dist/src/schemas/UserCreateReq.d.ts +2 -1
  67. package/dist/src/schemas/UserPasswordResetCompleteRes.d.ts +4 -0
  68. package/package.json +32 -33
  69. package/readme.md +584 -570
  70. package/src/coreFunctions.ts +29 -7
  71. package/src/genericAuthContext.ts +8 -5
  72. package/src/genericAuthPluginOptions.ts +6 -1
  73. package/src/handlers/Management/PutUserProfileByUserid.ts +6 -0
  74. package/src/handlers/UserCreate.ts +3 -2
  75. package/src/handlers/UserLogin.ts +56 -31
  76. package/src/handlers/UserProfilePut.ts +20 -22
  77. package/src/handlers/UserPushRegisterToken.ts +1 -1
  78. package/src/index.ts +2 -1
  79. package/src/init.ts +108 -120
  80. package/src/schemas/User.ts +2 -1
  81. package/src/schemas/UserCreateReq.ts +5 -4
  82. package/src/schemas/UserPasswordResetCompleteRes.ts +8 -3
  83. package/tsconfig.json +21 -21
  84. package/CLAUDE.md +0 -32
@@ -1,647 +1,5 @@
1
1
  {
2
2
  "$schema": "http://json-schema.org/draft-07/schema#",
3
3
  "$ref": "#/definitions/Schemas",
4
- "definitions": {
5
- "UserCreate_7_ReqSchema": {
6
- "$schema": "http://json-schema.org/draft-07/schema#",
7
- "type": "object",
8
- "additionalProperties": false,
9
- "properties": {
10
- "username": {
11
- "type": "string"
12
- },
13
- "password": {
14
- "type": "string"
15
- },
16
- "authentificationMethod": {
17
- "type": "string",
18
- "enum": [
19
- "password",
20
- "sms"
21
- ]
22
- },
23
- "profile": {
24
- "type": "object"
25
- }
26
- },
27
- "required": [
28
- "username"
29
- ],
30
- "definitions": {}
31
- },
32
- "UserCreate_7_ResSchema": {
33
- "$schema": "http://json-schema.org/draft-07/schema#",
34
- "type": "object",
35
- "additionalProperties": false,
36
- "properties": {
37
- "status": {
38
- "type": "string",
39
- "enum": [
40
- "success",
41
- "error",
42
- "userExists",
43
- "passwordError"
44
- ]
45
- },
46
- "user": {
47
- "type": "object",
48
- "properties": {
49
- "_id": {
50
- "type": "string"
51
- },
52
- "username": {
53
- "type": "string"
54
- },
55
- "token": {
56
- "type": "string"
57
- }
58
- },
59
- "required": [
60
- "_id",
61
- "username",
62
- "token"
63
- ],
64
- "additionalProperties": false
65
- }
66
- },
67
- "required": [
68
- "status"
69
- ],
70
- "definitions": {}
71
- },
72
- "UserLogin_7_ReqSchema": {
73
- "$schema": "http://json-schema.org/draft-07/schema#",
74
- "type": "object",
75
- "additionalProperties": false,
76
- "properties": {
77
- "username": {
78
- "type": "string"
79
- },
80
- "password": {
81
- "type": "string"
82
- }
83
- },
84
- "required": [
85
- "username"
86
- ],
87
- "definitions": {}
88
- },
89
- "UserLogin_7_ResSchema": {
90
- "$schema": "http://json-schema.org/draft-07/schema#",
91
- "type": "object",
92
- "additionalProperties": false,
93
- "properties": {
94
- "status": {
95
- "type": "string",
96
- "enum": [
97
- "success",
98
- "failed",
99
- "requiresValidation"
100
- ]
101
- },
102
- "user": {
103
- "type": "object",
104
- "properties": {
105
- "_id": {
106
- "type": "string"
107
- },
108
- "username": {
109
- "type": "string"
110
- },
111
- "token": {
112
- "type": "string"
113
- },
114
- "profile": {
115
- "type": "object"
116
- }
117
- },
118
- "required": [
119
- "_id",
120
- "username",
121
- "token",
122
- "profile"
123
- ],
124
- "additionalProperties": false
125
- },
126
- "validationToken": {
127
- "type": "string"
128
- }
129
- },
130
- "required": [
131
- "status"
132
- ],
133
- "definitions": {}
134
- },
135
- "UserLoginByToken_7_ReqSchema": {
136
- "$schema": "http://json-schema.org/draft-07/schema#",
137
- "type": "object",
138
- "additionalProperties": false,
139
- "properties": {
140
- "token": {
141
- "type": "string"
142
- },
143
- "code": {
144
- "type": "string"
145
- }
146
- },
147
- "required": [
148
- "code",
149
- "token"
150
- ],
151
- "definitions": {}
152
- },
153
- "UserLoginByToken_7_ResSchema": {
154
- "$schema": "http://json-schema.org/draft-07/schema#",
155
- "type": "object",
156
- "additionalProperties": false,
157
- "properties": {
158
- "status": {
159
- "type": "string",
160
- "enum": [
161
- "success",
162
- "failed",
163
- "requiresValidation"
164
- ]
165
- },
166
- "user": {
167
- "type": "object",
168
- "properties": {
169
- "_id": {
170
- "type": "string"
171
- },
172
- "username": {
173
- "type": "string"
174
- },
175
- "token": {
176
- "type": "string"
177
- },
178
- "profile": {
179
- "type": "object"
180
- }
181
- },
182
- "required": [
183
- "_id",
184
- "username",
185
- "token",
186
- "profile"
187
- ],
188
- "additionalProperties": false
189
- },
190
- "validationToken": {
191
- "type": "string"
192
- }
193
- },
194
- "required": [
195
- "status"
196
- ],
197
- "definitions": {}
198
- },
199
- "UserPasswordPut_7_ReqSchema": {
200
- "$schema": "http://json-schema.org/draft-07/schema#",
201
- "type": "object",
202
- "additionalProperties": false,
203
- "properties": {
204
- "password": {
205
- "type": "string"
206
- }
207
- },
208
- "required": [
209
- "password"
210
- ],
211
- "definitions": {}
212
- },
213
- "UserPasswordPut_7_ResSchema": {
214
- "$schema": "http://json-schema.org/draft-07/schema#",
215
- "type": "object",
216
- "additionalProperties": false,
217
- "properties": {
218
- "status": {
219
- "type": "string",
220
- "enum": [
221
- "success",
222
- "failed",
223
- "passwordError"
224
- ]
225
- }
226
- },
227
- "required": [
228
- "status"
229
- ],
230
- "definitions": {}
231
- },
232
- "UserPasswordResetComplete_13_ReqSchema": {
233
- "$schema": "http://json-schema.org/draft-07/schema#",
234
- "type": "object",
235
- "additionalProperties": false,
236
- "properties": {
237
- "passwordResetToken": {
238
- "type": "string"
239
- },
240
- "code": {
241
- "type": "string"
242
- },
243
- "password": {
244
- "type": "string"
245
- }
246
- },
247
- "required": [
248
- "code",
249
- "password",
250
- "passwordResetToken"
251
- ],
252
- "definitions": {}
253
- },
254
- "UserPasswordResetComplete_13_ResSchema": {
255
- "$schema": "http://json-schema.org/draft-07/schema#",
256
- "type": "object",
257
- "additionalProperties": false,
258
- "properties": {
259
- "status": {
260
- "type": "string",
261
- "enum": [
262
- "success",
263
- "userNotFound",
264
- "invalidCode",
265
- "passwordError"
266
- ]
267
- }
268
- },
269
- "required": [
270
- "status"
271
- ],
272
- "definitions": {}
273
- },
274
- "UserPasswordResetStart_9_ReqSchema": {
275
- "$schema": "http://json-schema.org/draft-07/schema#",
276
- "type": "object",
277
- "additionalProperties": false,
278
- "properties": {
279
- "username": {
280
- "type": "string"
281
- },
282
- "template": {
283
- "type": "string"
284
- },
285
- "additionalAuth": {
286
- "type": "string"
287
- }
288
- },
289
- "required": [
290
- "username"
291
- ],
292
- "definitions": {}
293
- },
294
- "UserPasswordResetStart_9_ResSchema": {
295
- "$schema": "http://json-schema.org/draft-07/schema#",
296
- "type": "object",
297
- "additionalProperties": false,
298
- "properties": {
299
- "status": {
300
- "type": "string",
301
- "enum": [
302
- "success",
303
- "userNotFound"
304
- ]
305
- },
306
- "passwordResetToken": {
307
- "type": "string"
308
- },
309
- "profile": {
310
- "type": "object"
311
- }
312
- },
313
- "required": [
314
- "status"
315
- ],
316
- "definitions": {}
317
- },
318
- "UserProfileGet_5_ReqSchema": {
319
- "$schema": "http://json-schema.org/draft-07/schema#",
320
- "type": "object",
321
- "properties": {},
322
- "definitions": {}
323
- },
324
- "UserProfilePut_5_ReqSchema": {
325
- "$schema": "http://json-schema.org/draft-07/schema#",
326
- "type": "object",
327
- "properties": {},
328
- "definitions": {}
329
- },
330
- "UserProfilePut_5_ResSchema": {
331
- "$schema": "http://json-schema.org/draft-07/schema#",
332
- "type": "object",
333
- "properties": {},
334
- "definitions": {}
335
- },
336
- "UserPushRegisterToken_8_ReqSchema": {
337
- "$schema": "http://json-schema.org/draft-07/schema#",
338
- "type": "object",
339
- "additionalProperties": false,
340
- "properties": {
341
- "deviceId": {
342
- "type": "string"
343
- },
344
- "token": {
345
- "type": "string"
346
- },
347
- "platform": {
348
- "type": "string",
349
- "enum": [
350
- "ios",
351
- "android",
352
- "web"
353
- ]
354
- },
355
- "type": {
356
- "type": "string",
357
- "enum": [
358
- "firebase",
359
- "apn-voip"
360
- ]
361
- }
362
- },
363
- "required": [
364
- "deviceId",
365
- "token"
366
- ],
367
- "definitions": {}
368
- },
369
- "UserPushRegisterToken_8_ResSchema": {
370
- "$schema": "http://json-schema.org/draft-07/schema#",
371
- "type": "object",
372
- "additionalProperties": false,
373
- "properties": {
374
- "status": {
375
- "type": "string",
376
- "enum": [
377
- "success",
378
- "failed"
379
- ]
380
- }
381
- },
382
- "required": [
383
- "status"
384
- ],
385
- "definitions": {}
386
- },
387
- "UserPushRemoveToken_7_ReqSchema": {
388
- "$schema": "http://json-schema.org/draft-07/schema#",
389
- "type": "object",
390
- "additionalProperties": false,
391
- "properties": {
392
- "deviceId": {
393
- "type": "string"
394
- },
395
- "token": {
396
- "type": "string"
397
- },
398
- "platform": {
399
- "type": "string",
400
- "enum": [
401
- "ios",
402
- "android",
403
- "web"
404
- ]
405
- },
406
- "type": {
407
- "type": "string",
408
- "enum": [
409
- "firebase",
410
- "apn-voip"
411
- ]
412
- }
413
- },
414
- "required": [
415
- "deviceId",
416
- "token"
417
- ],
418
- "definitions": {}
419
- },
420
- "UserPushRemoveToken_7_ResSchema": {
421
- "$schema": "http://json-schema.org/draft-07/schema#",
422
- "type": "object",
423
- "additionalProperties": false,
424
- "properties": {
425
- "status": {
426
- "type": "string",
427
- "enum": [
428
- "success",
429
- "failed"
430
- ]
431
- }
432
- },
433
- "required": [
434
- "status"
435
- ],
436
- "definitions": {}
437
- },
438
- "UserToken_10_ReqSchema": {
439
- "$schema": "http://json-schema.org/draft-07/schema#",
440
- "type": "object",
441
- "additionalProperties": false,
442
- "properties": {
443
- "token": {
444
- "type": "string"
445
- }
446
- },
447
- "required": [
448
- "token"
449
- ],
450
- "definitions": {}
451
- },
452
- "DeleteUserByUserid_6_ReqSchema": {
453
- "$schema": "http://json-schema.org/draft-07/schema#",
454
- "type": "object",
455
- "additionalProperties": false,
456
- "properties": {},
457
- "definitions": {}
458
- },
459
- "DeleteUserByUserid_6_ResSchema": {
460
- "$schema": "http://json-schema.org/draft-07/schema#",
461
- "type": "object",
462
- "additionalProperties": false,
463
- "properties": {},
464
- "definitions": {}
465
- },
466
- "GetUser_5_ReqSchema": {
467
- "$schema": "http://json-schema.org/draft-07/schema#",
468
- "type": "object",
469
- "additionalProperties": false,
470
- "properties": {},
471
- "definitions": {}
472
- },
473
- "GetUser_5_ResSchema": {
474
- "$schema": "http://json-schema.org/draft-07/schema#",
475
- "type": "object",
476
- "additionalProperties": false,
477
- "properties": {
478
- "users": {
479
- "type": "array",
480
- "items": {
481
- "type": "object",
482
- "properties": {
483
- "_id": {
484
- "type": "string"
485
- },
486
- "username": {
487
- "type": "string"
488
- }
489
- },
490
- "required": [
491
- "_id",
492
- "username"
493
- ],
494
- "additionalProperties": false
495
- }
496
- }
497
- },
498
- "required": [
499
- "users"
500
- ],
501
- "definitions": {}
502
- },
503
- "GetUserByUserid_11_ReqSchema": {
504
- "$schema": "http://json-schema.org/draft-07/schema#",
505
- "type": "object",
506
- "additionalProperties": false,
507
- "properties": {},
508
- "definitions": {}
509
- },
510
- "GetUserViewByUserid_6_ReqSchema": {
511
- "$schema": "http://json-schema.org/draft-07/schema#",
512
- "type": "object",
513
- "additionalProperties": false,
514
- "properties": {},
515
- "definitions": {}
516
- },
517
- "GetUserViewByUserid_6_ResSchema": {
518
- "$schema": "http://json-schema.org/draft-07/schema#",
519
- "type": "object",
520
- "additionalProperties": false,
521
- "properties": {
522
- "buttons": {
523
- "type": "array",
524
- "items": {
525
- "type": "object",
526
- "properties": {
527
- "text": {
528
- "type": "string"
529
- },
530
- "url": {
531
- "type": "string"
532
- }
533
- },
534
- "required": [
535
- "text",
536
- "url"
537
- ],
538
- "additionalProperties": false
539
- }
540
- },
541
- "data": {
542
- "type": "object",
543
- "additionalProperties": {
544
- "type": "string"
545
- }
546
- }
547
- },
548
- "required": [
549
- "buttons",
550
- "data"
551
- ],
552
- "definitions": {}
553
- },
554
- "PutUserPasswordByUserid_6_ReqSchema": {
555
- "$schema": "http://json-schema.org/draft-07/schema#",
556
- "type": "object",
557
- "additionalProperties": false,
558
- "properties": {
559
- "password": {
560
- "type": "string"
561
- }
562
- },
563
- "required": [
564
- "password"
565
- ],
566
- "definitions": {}
567
- },
568
- "PutUserPasswordByUserid_6_ResSchema": {
569
- "$schema": "http://json-schema.org/draft-07/schema#",
570
- "type": "object",
571
- "additionalProperties": false,
572
- "properties": {},
573
- "definitions": {}
574
- },
575
- "PutUserProfileByUserid_11_ReqSchema": {
576
- "$schema": "http://json-schema.org/draft-07/schema#",
577
- "type": "object",
578
- "properties": {},
579
- "definitions": {}
580
- },
581
- "PutUserProfileByUserid_11_ResSchema": {
582
- "$schema": "http://json-schema.org/draft-07/schema#",
583
- "type": "object",
584
- "additionalProperties": false,
585
- "properties": {},
586
- "definitions": {}
587
- },
588
- "PutUserProfileByUseridAppend_11_ReqSchema": {
589
- "$schema": "http://json-schema.org/draft-07/schema#",
590
- "type": "object",
591
- "properties": {},
592
- "definitions": {}
593
- },
594
- "PutUserProfileByUseridAppend_11_ResSchema": {
595
- "$schema": "http://json-schema.org/draft-07/schema#",
596
- "type": "object",
597
- "additionalProperties": false,
598
- "properties": {},
599
- "definitions": {}
600
- },
601
- "PutUserRolesByUserid_11_ReqSchema": {
602
- "$schema": "http://json-schema.org/draft-07/schema#",
603
- "type": "object",
604
- "additionalProperties": false,
605
- "properties": {
606
- "roles": {
607
- "type": "array",
608
- "items": {
609
- "type": "string"
610
- }
611
- }
612
- },
613
- "required": [
614
- "roles"
615
- ],
616
- "definitions": {}
617
- },
618
- "PutUserRolesByUserid_11_ResSchema": {
619
- "$schema": "http://json-schema.org/draft-07/schema#",
620
- "type": "object",
621
- "additionalProperties": false,
622
- "properties": {},
623
- "definitions": {}
624
- },
625
- "PutUserUsernameByUserid_12_ReqSchema": {
626
- "$schema": "http://json-schema.org/draft-07/schema#",
627
- "type": "object",
628
- "additionalProperties": false,
629
- "properties": {
630
- "username": {
631
- "type": "string"
632
- }
633
- },
634
- "required": [
635
- "username"
636
- ],
637
- "definitions": {}
638
- },
639
- "PutUserUsernameByUserid_12_ResSchema": {
640
- "$schema": "http://json-schema.org/draft-07/schema#",
641
- "type": "object",
642
- "additionalProperties": false,
643
- "properties": {},
644
- "definitions": {}
645
- }
646
- }
4
+ "definitions": {}
647
5
  }
@@ -2,3 +2,5 @@ import "./generatedHandlers";
2
2
  import "./generatedRepos";
3
3
  import "./generatedJobs";
4
4
  import "../src/index";
5
+ declare const _default: {};
6
+ export default _default;
@@ -1,7 +1,8 @@
1
1
  "use strict";
2
2
  Object.defineProperty(exports, "__esModule", { value: true });
3
- // Generated Sat Mar 29 2025 08:03:23 GMT+0100 (Central European Standard Time)
3
+ // Generated Fri Jan 09 2026 11:18:25 GMT+0100 (Central European Standard Time)
4
4
  require("./generatedHandlers");
5
5
  require("./generatedRepos");
6
6
  require("./generatedJobs");
7
7
  require("../src/index");
8
+ exports.default = {}; // Export an empty object to make it a module
@@ -1,4 +1,4 @@
1
- import { FlinkRepo } from "@flink-app/flink";
1
+ import { FlinkRepo, FlinkRequest } from "@flink-app/flink";
2
2
  import { JwtAuthPlugin } from "@flink-app/jwt-auth-plugin";
3
3
  import { User } from "./schemas/User";
4
4
  import { UserCreateRes } from "./schemas/UserCreateRes";
@@ -11,20 +11,20 @@ import { GenericAuthsmsOptions } from "./genericAuthPluginOptions";
11
11
  export declare function getJtwTokenPlugin(secret: string, rolePermissions?: {
12
12
  [role: string]: string[];
13
13
  }, passwordPolicy?: RegExp, tokenTTL?: number): JwtAuthPlugin;
14
- export declare function createUser(repo: FlinkRepo<any, User>, auth: JwtAuthPlugin, username: string, password: string, authentificationMethod: "password" | "sms", roles: string[], profile: UserProfile, createPasswordHashAndSaltMethod?: {
14
+ export declare function createUser(repo: FlinkRepo<any, User>, auth: JwtAuthPlugin, username: string, password: string, authentificationMethod: "password" | "sms" | "bankid", roles: string[], profile: UserProfile, createPasswordHashAndSaltMethod?: {
15
15
  (password: string): Promise<{
16
16
  hash: string;
17
17
  salt: string;
18
18
  } | null>;
19
19
  }, onUserCreated?: {
20
20
  (user: User): Promise<void>;
21
- }): Promise<UserCreateRes>;
21
+ }, personalNumber?: string): Promise<UserCreateRes>;
22
22
  export declare function loginByToken(repo: FlinkRepo<any, User>, auth: JwtAuthPlugin, token: string, code: string, jwtSecret: string): Promise<UserLoginRes>;
23
23
  export declare function loginUser(repo: FlinkRepo<any, User>, auth: JwtAuthPlugin, username: string, password: string | undefined, validatePasswordMethod?: {
24
24
  (password: string, hash: string, salt: string): Promise<boolean>;
25
25
  }, smsOptions?: GenericAuthsmsOptions, onSuccessfulLogin?: {
26
- (user: User): Promise<void>;
27
- }): Promise<UserLoginRes>;
26
+ (user: User, req?: FlinkRequest): Promise<void>;
27
+ }, req?: FlinkRequest): Promise<UserLoginRes>;
28
28
  export declare function changePassword(repo: FlinkRepo<any, User>, auth: JwtAuthPlugin, userId: string, newPassword: string, createPasswordHashAndSaltMethod?: {
29
29
  (password: string): Promise<{
30
30
  hash: string;