@@ -4,35 +4,35 @@ admin.initializeApp();
4
4
5
5
// [START get_user_by_id]
6
6
admin . 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
+ } ) ;
14
14
// [END get_user_by_id]
15
15
16
16
// [START get_user_by_email]
17
17
admin . 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
+ } ) ;
25
25
// [END get_user_by_email]
26
26
27
27
// [START get_user_by_phone]
28
28
admin . 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
+ } ) ;
36
36
// [END get_user_by_phone]
37
37
38
38
// [START create_user]
@@ -90,12 +90,12 @@ admin.auth().updateUser(uid, {
90
90
91
91
// [START delete_user]
92
92
admin . 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
+ } ) ;
99
99
// [END delete_user]
100
100
101
101
// [START list_all_users]
0 commit comments