How to by pass login function through APIs In puthom

We need bypass the login functionality once user logged in from api and need to redirect to erpnext dashboard

If you have a custom Frappe app on your site, you can create a whitelisted method to log the user in, but then you must write your authentication code.

@frappe.whitelist()
def login_as_user(email):
    # your authentication logic
    frappe.local.login_manager.login_as(email)
    frappe.local.response.type = 'redirect'
    frappe.local.response.location = '/app'

Here is an example from Framework that uses a temporary key to login:

Doing this without a custom app will be challenging, to say the least.

Than for your reply sir,
One more doubt sir, Freshly integrated in local but when open dashboard page I’m not able to see the Assets or Accounts page but when goes to code there is assets module but in frontend not able to see that menu only can you help me how to get default asses and required features


can any one help on this. Thank you