use-pusher icon indicating copy to clipboard operation
use-pusher copied to clipboard

Update auth config is not working

Open pqminh opened this issue 10 months ago • 0 comments

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/[email protected] [email protected]

Thanks!

pqminh avatar Aug 16 '23 05:08 pqminh