react-context-pusher
react-context-pusher copied to clipboard
Authenticating Users
Thanks for an awesome example. I'm new to react hooks and can't figure out how to authenticate users for private channels with the current implementation. A new pusher object is created outside the functional component and I'm unable to access the auth token from the redux state to pass in during the authentication process. I went with using useRef, but are there any other better ways?