Authenticate Provider


I want auth users login with my authenticate provider, I have an api with endpoint( for login this endpoint returns idToken, refreshToken, accesToken but I dont know if with this endpoint can login and auth my users.
Or if I need create a OAuth provider to login and auth my users, Can anyone help me ?