Login authentication from Api backend

hello,

i am trying to undestand how can i create a login process.

My users will be authenticate with an Api service from my backend app .
How i do ?

thank you very much