I’ve deployed my own backend JS service and I’m calling it from the frontend with the block
- I’m not passing a user token
- I’m not using cookies to store user data on the client
What I’m observing though is, that my backend service can successfully execute
var currentUser = await Backendless.UserService.getCurrentUser();
currentUser
is successfully determined if a user is logged-in although I’m not explicitly passing the user-token with the call from the frontend.
So, it seems that the user-token is passed to the backend no matter whether I’m deciding to do so, or not. What’s the purpose then of the user-token connector in the API Service block?
Regards,