How to use frappe login system and display user details in a custom HTML Template?

Hello community, I am new to frappe. First of all I thank frappe team for providing such a great platform.

  • I have imported a bootstrap template in www folder in my custom app
  • Placed the resources in the public folder
  • Extended every pages with custom base.html page in template folder
  • Also displayed context values of custom doctypes through jinja

So far everything is working fine, now I want to use the frappe login system (or a custom login system if possible) in my custom template and want to display details like user information, login/logout button, and a custom menu in the custom navbar which is coded in base.html file.
Please anyone help me to get it solved.

@Shahrukh_Talukdar that’s exactly what API does .