国产av日韩一区二区三区精品,成人性爱视频在线观看,国产,欧美,日韩,一区,www.成色av久久成人,2222eeee成人天堂

Use Passportjs Local for authentication, combined with Axios Ajax calls and VueJs to implement user authentication
P粉775723722
P粉775723722 2023-09-09 12:02:13
0
1
647

I want to build a dashboard using node and js views and use a template engine like Handlebars or Pug, can I use PassportJs Local in the Ajax call

P粉775723722
P粉775723722

reply all(1)
P粉463418483

We use PassportJs as middleware on the server side to authenticate users.

However, on the client side, you call an endpoint such as /login, which does not know if you are using PassportJs. So let's say we don't use PassportJs on the client side.

So you can definitely use Ajax to request an endpoint possibly on the server side using PassportJs.

Please check the documentation of PassportJs

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template