I’ve linked you the documentation.
I can provide fixes to code, but I’m not gonna write the code for you.
The next step is to pick a language and start programming.
There are some authentication examples on my github that might help you, but there are no practical examples you can jsut copy and paste