@@ -29,28 +29,28 @@ authClient.interceptors.response.use(
29
29
export default {
30
30
async login ( payload ) {
31
31
await authClient . get ( "/sanctum/csrf-cookie" ) ;
32
- await authClient . post ( "/login" , payload ) ;
32
+ return authClient . post ( "/login" , payload ) ;
33
33
} ,
34
34
logout ( ) {
35
35
return authClient . post ( "/logout" ) ;
36
36
} ,
37
37
async forgotPassword ( payload ) {
38
38
await authClient . get ( "/sanctum/csrf-cookie" ) ;
39
- await authClient . post ( "/forgot-password" , payload ) ;
39
+ return authClient . post ( "/forgot-password" , payload ) ;
40
40
} ,
41
41
getAuthUser ( ) {
42
42
return authClient . get ( "/api/users/auth" ) ;
43
43
} ,
44
44
async resetPassword ( payload ) {
45
45
await authClient . get ( "/sanctum/csrf-cookie" ) ;
46
- await authClient . post ( "/reset-password" , payload ) ;
46
+ return authClient . post ( "/reset-password" , payload ) ;
47
47
} ,
48
48
updatePassword ( payload ) {
49
49
return authClient . put ( "/user/password" , payload ) ;
50
50
} ,
51
51
async registerUser ( payload ) {
52
52
await authClient . get ( "/sanctum/csrf-cookie" ) ;
53
- await authClient . post ( "/register" , payload ) ;
53
+ return authClient . post ( "/register" , payload ) ;
54
54
} ,
55
55
sendVerification ( payload ) {
56
56
return authClient . post ( "/email/verification-notification" , payload ) ;
0 commit comments