From 2ccb95e50f90d9e6e20d4215cfb7ab8d9103296f Mon Sep 17 00:00:00 2001 From: Rafi Arrafif Date: Sun, 10 Aug 2025 23:55:32 +0700 Subject: [PATCH] :label: add type for after handle auth --- .idea/.gitignore | 8 ++++++++ .idea/backend.iml | 12 ++++++++++++ .idea/modules.xml | 8 ++++++++ .idea/vcs.xml | 6 ++++++ src/modules/auth/auth.types.ts | 6 ++++++ 5 files changed, 40 insertions(+) create mode 100644 .idea/.gitignore create mode 100644 .idea/backend.iml create mode 100644 .idea/modules.xml create mode 100644 .idea/vcs.xml create mode 100644 src/modules/auth/auth.types.ts diff --git a/.idea/.gitignore b/.idea/.gitignore new file mode 100644 index 0000000..13566b8 --- /dev/null +++ b/.idea/.gitignore @@ -0,0 +1,8 @@ +# Default ignored files +/shelf/ +/workspace.xml +# Editor-based HTTP Client requests +/httpRequests/ +# Datasource local storage ignored files +/dataSources/ +/dataSources.local.xml diff --git a/.idea/backend.iml b/.idea/backend.iml new file mode 100644 index 0000000..24643cc --- /dev/null +++ b/.idea/backend.iml @@ -0,0 +1,12 @@ + + + + + + + + + + + + \ No newline at end of file diff --git a/.idea/modules.xml b/.idea/modules.xml new file mode 100644 index 0000000..e066844 --- /dev/null +++ b/.idea/modules.xml @@ -0,0 +1,8 @@ + + + + + + + + \ No newline at end of file diff --git a/.idea/vcs.xml b/.idea/vcs.xml new file mode 100644 index 0000000..35eb1dd --- /dev/null +++ b/.idea/vcs.xml @@ -0,0 +1,6 @@ + + + + + + \ No newline at end of file diff --git a/src/modules/auth/auth.types.ts b/src/modules/auth/auth.types.ts new file mode 100644 index 0000000..20834be --- /dev/null +++ b/src/modules/auth/auth.types.ts @@ -0,0 +1,6 @@ +export interface LoginIfExistAndCreateIfNot { + email: string; + username?: string; + name: string; + provider: "Google" | "GitHub"; +}