Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
Remove unsupported properties from CreateRequest
  • Loading branch information
brettwillis committed Feb 7, 2024
commit 9fa048445bd6e10753abda5fa598abac6c67d79f
13 changes: 9 additions & 4 deletions src/auth/auth-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -124,10 +124,9 @@ export interface MultiFactorUpdateSettings {
}

/**
* Interface representing the properties to update on the provided user.
* Interface representing the base properties for `CreateRequest` and `UpdateRequest`.
*/
export interface UpdateRequest {

export interface BaseCreateUpdateUserRequest {
/**
* Whether or not the user is disabled: `true` for disabled;
* `false` for enabled.
Expand Down Expand Up @@ -163,6 +162,12 @@ export interface UpdateRequest {
* The user's photo URL.
*/
photoURL?: string | null;
}

/**
* Interface representing the properties to update on the provided user.
*/
export interface UpdateRequest extends BaseCreateUpdateUserRequest {

/**
* The user's updated multi-factor related properties.
Expand Down Expand Up @@ -238,7 +243,7 @@ export interface UserProvider {
* Interface representing the properties to set on a new user record to be
* created.
*/
export interface CreateRequest extends UpdateRequest {
export interface CreateRequest extends BaseCreateUpdateUserRequest {

/**
* The user's `uid`.
Expand Down