narinder1231 commited on
Commit
df7f428
·
1 Parent(s): 7d4de65

Add authentication interfaces for login and registration

Browse files
Files changed (1) hide show
  1. src/interfaces/auth.ts +19 -0
src/interfaces/auth.ts ADDED
@@ -0,0 +1,19 @@
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ export interface ILogin {
2
+ email: string;
3
+ password: string;
4
+ }
5
+
6
+ export interface ILoginResponse {
7
+ token: string;
8
+ }
9
+
10
+ export interface IRegister {
11
+ first_name: string;
12
+ last_name: string;
13
+ email: string;
14
+ password: string;
15
+ }
16
+
17
+ export interface IRegisterResponse {
18
+ user_id: string;
19
+ }