How do login in to cuba application from a javascript application

hi,
I have a separate font-end application written in javascript. I am creating a login form using javascript in the front end. Can I login to my Cuba application by providing username and password of a user in my Cuba database in the javascript front end and do the things which the user can do in Cuba?

Hi,
You can use REST API: Getting an OAuth Token - CUBA Platform. Developer’s Manual

I used rest api .But after login i want to login in cuba application and use that application’s pages like edit and browser pages

But after login i want to login in cuba application

Sorry, what? I am not sure I have understood you correctly.

Do you want to programmatically login from your javascript code to a CUBA application?
CUBA application UI is meant to be used by human users, not by javascript code.

Yes I only want to programmatically login from my javascript code to a CUBA application.After i want to use my cuba application

Your requirements resemble a Single Sign-On technology. It allows CUBA app to redirect authentication to a separate system (or web page).

For single sign-on integration you can use CUBA add-ons SAML and IDP : Jmix Marketplace – Jmix

If you want to embed a CUBA application into a separate web page - we would not recommend that, it feels like a weird decision.