-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathindex.ts
More file actions
81 lines (64 loc) · 1.5 KB
/
Copy pathindex.ts
File metadata and controls
81 lines (64 loc) · 1.5 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
import * as admin from "firebase-admin";
import * as dotenv from "dotenv";
import * as path from "path";
// Apple 인증 관련 함수 가져오기
import {
requestAppleCustomToken,
requestAppleRefreshToken,
refreshAppleAccessToken,
revokeAppleAccessToken
} from "./auth/apple";
// GitHub 인증 관련 함수 가져오기
import {
requestGithubTokens,
revokeGithubAccessToken
} from "./auth/github";
// import {
// } from "./auth/google";
import {
deleteUserFirestoreData
} from "./user/delete";
import {
sendPushNotification
} from "./fcm/notification";
import {
scheduleTodoReminder
} from "./fcm/schedule";
import {
removeTodoNotificationDocuments,
removeCompletedTodoReceipts,
removeStaleTodoReceipts
} from "./todo/remove";
// .env 파일 로드
dotenv.config({
path: path.resolve(__dirname, "../.env"),
override: true
});
// Firebase 앱 초기화
admin.initializeApp();
// Apple 인증 함수들 내보내기
export {
requestAppleCustomToken,
requestAppleRefreshToken,
refreshAppleAccessToken,
revokeAppleAccessToken
};
// GitHub 인증 함수들 내보내기
export {
requestGithubTokens,
revokeGithubAccessToken
};
// Google 인증 함수들 (나중에 구현되면 추가)
export {
deleteUserFirestoreData
};
// FCM 관련 함수들 내보내기
export {
sendPushNotification,
scheduleTodoReminder
};
export {
removeTodoNotificationDocuments,
removeCompletedTodoReceipts,
removeStaleTodoReceipts
};