I have a question over how to use auth in a bridge. Here we can see the next:
bridge.before('connect', function(ctx, next) {
if(ctx.auth.password !== '1234') {
ctx.badCredentials = true;
}
next();
});
On this example, I can access to ctx and check auth but, how can I include the auth from a client? In my client I do login in loopback with a user and get accessToken but I don't know how authenticate the client for publish in a channel.
Thank!