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
- [Vuejs]-Vue CLI – TypeError: Cannot read properties of undefined (reading '1')
- [Vuejs]-Sending data from vue-select to another object
Source:stackexchange.com