deleteFirebaseAccountByAuthUserId method
Future<FirebaseAccount?>
deleteFirebaseAccountByAuthUserId(
- Session session, {
- required UuidValue authUserId,
- Transaction? transaction,
Deletes a Firebase account by auth user ID.
Returns the deleted account, or null if no account was found.
Note: This only removes the Firebase authentication link. The associated AuthUser is not deleted. To fully delete a user, use the auth core admin functions.
Implementation
Future<FirebaseAccount?> deleteFirebaseAccountByAuthUserId(
final Session session, {
required final UuidValue authUserId,
final Transaction? transaction,
}) async {
final accounts = await FirebaseAccount.db.deleteWhere(
session,
where: (final t) => t.authUserId.equals(authUserId),
transaction: transaction,
);
return accounts.firstOrNull;
}