From b4436ea26212f3f5b7d3bdb47ab1891c31ebe59e Mon Sep 17 00:00:00 2001 From: Andrei Barabas Date: Fri, 4 Sep 2020 18:12:50 +0300 Subject: [PATCH] fix(auth, types): allow null in photo and name for profile update (#4179) * fix: Add missing null to profile update You need to specify null when you want to remove the current user's photo * Update displayName to use same style, and docs to match Co-authored-by: Mike Hardy --- packages/auth/lib/index.d.ts | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/packages/auth/lib/index.d.ts b/packages/auth/lib/index.d.ts index 96f2e42335..fc451a56fb 100644 --- a/packages/auth/lib/index.d.ts +++ b/packages/auth/lib/index.d.ts @@ -455,13 +455,13 @@ export namespace FirebaseAuthTypes { */ export interface UpdateProfile { /** - * An optional display name for the user. + * An optional display name for the user. Explicitly pass null to clear the displayName. */ - displayName?: string; + displayName?: string | null; /** - * An optional photo URL for the user. + * An optional photo URL for the user. Explicitly pass null to clear the photoURL. */ - photoURL?: string; + photoURL?: string | null; } /**