Open MirrMurr opened 2 years ago
When the BE is ready! Also consult with Zoli!
In authSlice.ts add the BE verification to the login async Thunk action.
login
If necessary, make an AuthService.ts service file under services/api, similar to the other ones, using the ApiService
AuthService.ts
services/api
ApiService
Something like:
export const AuthService = { verify: (credentials: { username: string, password: string }) => ApiService.post(url, credentials) }
When the BE is ready! Also consult with Zoli!
In authSlice.ts add the BE verification to the
login
async Thunk action.If necessary, make an
AuthService.ts
service file underservices/api
, similar to the other ones, using theApiService
Something like: