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

Authorization problem #407

Open
BeastBurst opened this issue Sep 27, 2023 · 1 comment
Open

Authorization problem #407

BeastBurst opened this issue Sep 27, 2023 · 1 comment

Comments

@BeastBurst
Copy link

Does this implementation of socket.io for C++ have a support for sending authorization bearer token ?

@Louritan
Copy link

Louritan commented Nov 7, 2024

sio::message::ptr auth = sio::object_message::create();
auth->get_map()["Authorization"] = sio::string_message::create("Bearer " + your_token);
client.connect(your_url, auth);

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

2 participants