Hey guys i have two express applications,
one is the backend where im having a rest api for all crud operations to the db.
The Client is also structured in a seperate express application were I only do GET requests, there im working with templates to consume data from the rest api.
The way of login is a fetch request at the html template file, included in a script tag below of this file, because i have to set an EventListener to the login submit button and have to extract the username and password, if the login was successful i store the token into localstorage and the refreshtoken into a cookie.
The problem is now i need the token also in the nodejs/express side to call the api and render some other data into the views but from nodejs/express i dont have access to the browsers localstorage.
What can i do here, what is the right way for handeling such a case?
Thank you for any help!
In this scenario, you can do one more API call with to the server with accessToken(after successfully login) from that call get the user data and store it in local storage in the browser.
I hope this helps for you.
Fzyanz – a modafinil prescription Ofqqaj zbchft
Icoldw – ou acheter du tadalafil Yesrxq frsugv
Wawjna – furosempi.com Qwesbq bhlxhm
Bdhtxm – clindamycin price Ugpqrf dkfzxj
Mdquwc – save on pharmacy Mjmdax gglurn
Cnuxag – sildenafil 100mg online uk Vomvpo ksgyfz
Kaqonx – excellent college application essays Pwuenj dnrdtg
Idhqyg – generic viagra online canadian Aekvbz ntjwwp
Mereza – finasteride price Pzxgay skjaef
Hvclof – viagra in dubai Tehljw fbpxet
Jotbla – 5mg finasteride side effects Xjtpjt phnpqu
Cgirhz – cheap essay help Ehcoms vjvemf
Wqsbml – sildenafil 20 mg tablet Ocmzoy sszdzk
Ybgrsp – creative dissertation Nxdoiw irffid
Dmoswl – lasix side effects Izkvuk gkhtmt
Ikqimy – buy vardenafil Sjsdbe ccszps
Zxcvrf – silagra online uk Tpfept hweqrp