For example:
User access the site, we have web socket request without auth config
And user login their account, we need to disconnect previous client and create new client with auth config (for userAuthentication or channelAuthorization)
But it's not working as expected
previousConfig.current and props is the same value
Hi, is there a way to update auth config on demand?
https://github.com/pusher/pusher-js/tree/v7.6.0#channelauthorization-object
For example: User access the site, we have web socket request without auth config And user login their account, we need to disconnect previous client and create new client with auth config (for userAuthentication or channelAuthorization)
But it's not working as expected previousConfig.current and props is the same value
https://github.com/mayteio/use-pusher/blob/7ac463b4d3dfb1380054d6dbbd1d46aa3a00ccbc/src/core/PusherProvider.tsx#L57C5-L57C54
@harelpls/use-pusher@7.2.1 pusher-js@7.6.0
Thanks!