@@ -4,35 +4,35 @@ admin.initializeApp();
44
55// [START get_user_by_id]
66admin . auth ( ) . getUser ( uid )
7- . then ( function ( userRecord ) {
8- // See the UserRecord reference doc for the contents of userRecord.
9- console . log ( 'Successfully fetched user data:' , userRecord . toJSON ( ) ) ;
10- } )
11- . catch ( function ( error ) {
12- console . log ( 'Error fetching user data:' , error ) ;
13- } ) ;
7+ . then ( function ( userRecord ) {
8+ // See the UserRecord reference doc for the contents of userRecord.
9+ console . log ( 'Successfully fetched user data:' , userRecord . toJSON ( ) ) ;
10+ } )
11+ . catch ( function ( error ) {
12+ console . log ( 'Error fetching user data:' , error ) ;
13+ } ) ;
1414// [END get_user_by_id]
1515
1616// [START get_user_by_email]
1717admin . auth ( ) . getUserByEmail ( email )
18- . then ( function ( userRecord ) {
19- // See the UserRecord reference doc for the contents of userRecord.
20- console . log ( 'Successfully fetched user data:' , userRecord . toJSON ( ) ) ;
21- } )
22- . catch ( function ( error ) {
23- console . log ( 'Error fetching user data:' , error ) ;
24- } ) ;
18+ . then ( function ( userRecord ) {
19+ // See the UserRecord reference doc for the contents of userRecord.
20+ console . log ( 'Successfully fetched user data:' , userRecord . toJSON ( ) ) ;
21+ } )
22+ . catch ( function ( error ) {
23+ console . log ( 'Error fetching user data:' , error ) ;
24+ } ) ;
2525// [END get_user_by_email]
2626
2727// [START get_user_by_phone]
2828admin . auth ( ) . getUserByPhoneNumber ( phoneNumber )
29- . then ( function ( userRecord ) {
30- // See the UserRecord reference doc for the contents of userRecord.
31- console . log ( 'Successfully fetched user data:' , userRecord . toJSON ( ) ) ;
32- } )
33- . catch ( function ( error ) {
34- console . log ( 'Error fetching user data:' , error ) ;
35- } ) ;
29+ . then ( function ( userRecord ) {
30+ // See the UserRecord reference doc for the contents of userRecord.
31+ console . log ( 'Successfully fetched user data:' , userRecord . toJSON ( ) ) ;
32+ } )
33+ . catch ( function ( error ) {
34+ console . log ( 'Error fetching user data:' , error ) ;
35+ } ) ;
3636// [END get_user_by_phone]
3737
3838// [START create_user]
@@ -90,12 +90,12 @@ admin.auth().updateUser(uid, {
9090
9191// [START delete_user]
9292admin . auth ( ) . deleteUser ( uid )
93- . then ( function ( ) {
94- console . log ( 'Successfully deleted user' ) ;
95- } )
96- . catch ( function ( error ) {
97- console . log ( 'Error deleting user:' , error ) ;
98- } ) ;
93+ . then ( function ( ) {
94+ console . log ( 'Successfully deleted user' ) ;
95+ } )
96+ . catch ( function ( error ) {
97+ console . log ( 'Error deleting user:' , error ) ;
98+ } ) ;
9999// [END delete_user]
100100
101101// [START list_all_users]
0 commit comments