Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
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
2 changes: 1 addition & 1 deletion src/admin.ts
Original file line number Diff line number Diff line change
Expand Up @@ -358,7 +358,7 @@ export class AuthorizerAdmin {
params as unknown as Record<string, unknown>,
);

// deleteUser deletes a user (and associated OTP/verification data) by email.
// deleteUser deletes a user (and associated OTP/verification data) by id.
// DESTRUCTIVE: the user and their auth artifacts are permanently removed.
deleteUser = (
params: Types.DeleteUserRequest,
Expand Down
6 changes: 5 additions & 1 deletion src/types.ts
Original file line number Diff line number Diff line change
Expand Up @@ -372,8 +372,12 @@ export interface ResetPasswordRequest {
export type ResetPasswordInput = ResetPasswordRequest;

// DeleteUserRequest (admin only)
//
// BREAKING (server 2.4.0): this took `email` and now takes `id`. Email is not
// an identifier every account has — a phone-only signup has none — so an
// email-keyed delete could not reach those accounts at all.
export interface DeleteUserRequest {
email: string;
id: string;
}

// Fine-grained authorization (FGA) types — the client-facing surface of
Expand Down
Loading