Hi all, I’am playing around with Graph.cool with a...
# prisma-whats-new
x
Hi all, I’am playing around with Graph.cool with a next.js/apollo/react application and just trying out the subscriptions… all works as expexted until I set the read rights to ‘authenticated only’ currently setting it up as follows:
Copy code
const wsClient = new SubscriptionClient(`<wss://subscriptions.graph.cool/v1/cj2vk6fky76tv0169np2y0b1d>`, {
            reconnect: true,
            connectionParams: {
                authToken: localStorage.getItem('id_token')
            }
        });
any thoughts or pointers?
n
@xander hey, are you setting the auth info for
connectionParams
?correctly? notice that with the current installement of the
subscription-transport-ws
, you can't change the auth info after creating the subscription client