mirror of
https://github.com/jagandeepbrar/lunasea.git
synced 2026-08-30 20:24:25 +00:00
10 lines
298 B
TypeScript
10 lines
298 B
TypeScript
import * as functions from 'firebase-functions';
|
|
import { Firestore, Storage } from '../services';
|
|
|
|
export const deleteUserController = functions.auth
|
|
.user()
|
|
.onDelete(async (user: functions.auth.UserRecord) => {
|
|
await Firestore.deleteUser(user);
|
|
await Storage.deleteUser(user);
|
|
});
|