User authentication in another server

This appears to be a duplicate of Login authentication using DRF API backend. There’s no need to post the same issue or question multiple times.

See your other copy of this topic for further discussion.