BenjaminBaffy / context-aware-personal-assistant

2 stars 0 forks source link

Login BE verification #25

Open MirrMurr opened 2 years ago

MirrMurr commented 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.

If necessary, make an AuthService.ts service file under services/api, similar to the other ones, using the ApiService

Something like:

export const AuthService = {
  verify: (credentials: { username: string, password: string }) => ApiService.post(url, credentials)
}