Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

auth not working #47

Open
adham-ashraf77 opened this issue Feb 14, 2022 · 2 comments
Open

auth not working #47

adham-ashraf77 opened this issue Feb 14, 2022 · 2 comments
Assignees

Comments

@adham-ashraf77
Copy link

Steps to reproduce

I want to auth to

pusher = new PusherClient(
      "name",
      PusherOptions(
        // if local on android use 10.0.2.2
        host: "hostname",
        wsPort: 6001,
        wssPort: 6002,
        encrypted: true,
        auth: PusherAuth(
          "api/link/broadcasting/auth",
          headers: {
        
            HttpHeaders.authorizationHeader:
                "Bearer " + LocalStorage.getData(key: "TokenUserLoad"),
     
          },
        ),
      ),
      enableLogging: true,
    );

Expected behaviour

to access auth

Actual behaviour

not access auth android or ios

...

@adham-ashraf77
Copy link
Author

auth pusher still have the same value if login again to new user any ideas what to do?

channel!.unbind(".order.message");
pusher!.unsubscribe(
    "private-orders.${BaseUrlApi.chefOrClient}.${widget.orderId}");
pusher?.cancelEventChannelStream();
pusher!.disconnect();

@devadrianapostol
Copy link

Same here. I also ran into this issue. I get same user even in the backend, I use a Laravel for BE, I get same old user in the channel routing even if I logged in as a different one.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants