add account delection page

This commit is contained in:
tzw
2024-03-05 17:09:04 +06:30
parent d2db1d60d0
commit 7622cce151
9 changed files with 170 additions and 31 deletions

View File

@@ -202,6 +202,10 @@ class AuthFb {
payload: {"preferred_currency": currency}, token: await getToken());
}
Future<void> deleteAccount() async {
return await requestAPI("/accounts", "DELETE", token: await getToken());
}
Stream<Setting> settings() async* {
Stream<DocumentSnapshot> snapshot = FirebaseFirestore.instance
.collection(config_collection)