[Vuejs]-Use Passportjs Local for authentification with Axios Ajax Call And VueJs

0👍

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

However, on the client-side, you call to endpoint e.g. /login which is unaware whether you are using PassportJs or not. Thus, one can say we do not use PassportJs on the client side.

Hence, you can definitely use Ajax to request an endpoint that may or may not be using PassportJs on the server-side.

Have a look at PassportJs Documentation

Leave a comment