I've been working on doing client-side only applications for a while. And the way I used to connect to an API (that I have control over) was to make a basic authentication using login/password and to create a JWT token on the server, save it in an HttpOnly + Secure cookie, and send it back to the client application when the flow has succeeded.
Today, I have to work on an application that handles parts of the computation on the server and where I process my form on the backend (looks a bit like PHP). The flow is the following:
My questions are:
Thanks for your help