@@ -37,6 +37,7 @@ module.exports = (db, server, userHandler) => {
37
37
success : successRes ,
38
38
id : userId ,
39
39
username : Joi . string ( ) . required ( ) . description ( 'Username of authenticated User' ) ,
40
+ address : Joi . string ( ) . required ( ) . description ( 'Default email address of authenticated User' ) ,
40
41
scope : Joi . string ( ) . required ( ) . description ( 'The scope this authentication is valid for' ) ,
41
42
require2fa : Joi . array ( ) . items ( Joi . string ( ) ) . required ( ) . description ( 'List of enabled 2FA mechanisms' )
42
43
} )
@@ -109,6 +110,7 @@ module.exports = (db, server, userHandler) => {
109
110
success : true ,
110
111
id : authData . user . toString ( ) ,
111
112
username : authData . username ,
113
+ address : authData . address ,
112
114
scope : authData . scope ,
113
115
require2fa : authData . require2fa
114
116
} ;
@@ -158,6 +160,7 @@ module.exports = (db, server, userHandler) => {
158
160
success : successRes ,
159
161
id : userId ,
160
162
username : Joi . string ( ) . required ( ) . description ( 'Username of authenticated User' ) ,
163
+ address : Joi . string ( ) . required ( ) . description ( 'Default email address of authenticated User' ) ,
161
164
scope : Joi . string ( ) . required ( ) . description ( 'The scope this authentication is valid for' ) ,
162
165
require2fa : Joi . array ( ) . items ( Joi . string ( ) ) . required ( ) . description ( 'List of enabled 2FA mechanisms' ) ,
163
166
requirePasswordChange : booleanSchema . required ( ) . description ( 'Indicates if account hassword has been reset and should be replaced' ) ,
@@ -246,6 +249,7 @@ module.exports = (db, server, userHandler) => {
246
249
success : true ,
247
250
id : authData . user . toString ( ) ,
248
251
username : authData . username ,
252
+ address : authData . address ,
249
253
scope : authData . scope ,
250
254
require2fa : authData . require2fa ,
251
255
requirePasswordChange : authData . requirePasswordChange
0 commit comments