Skip to content

Commit

Permalink
fix(auth, types): allow null in photo and name for profile update (in…
Browse files Browse the repository at this point in the history
…vertase#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 <[email protected]>
  • Loading branch information
andreibarabas and mikehardy authored Sep 4, 2020
1 parent de8234b commit eb209b1
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions lib/index.d.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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;
}

/**
Expand Down

0 comments on commit eb209b1

Please sign in to comment.