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

Insufficient Information in Documentation Regarding Custom Auth Endpoint Configuration #132

Open
gustavomant opened this issue Jan 21, 2024 · 1 comment

Comments

@gustavomant
Copy link

The documentation for Pusher WebSocket in React Native lacks the necessary information and clarity concerning the configuration of the custom auth endpoint field.

await pusher.init({
apiKey: API_KEY,
cluster: API_CLUSTER,
authEndPoint: "https://your-server.com/pusher/auth"
});

What type of content should be returned from the custom auth endpoint?
Is there a way to pass additional properties to the endpoint? As far as I know, only the URL can be passed, but there seems to be missing information on this.

@gustavomant gustavomant changed the title Subject: Insufficient Information in Pusher WebSocket React Native Documentation Regarding Custom Auth Endpoint Configuration Insufficient Information in Pusher WebSocket React Native Documentation Regarding Custom Auth Endpoint Configuration Jan 21, 2024
@gustavomant gustavomant changed the title Insufficient Information in Pusher WebSocket React Native Documentation Regarding Custom Auth Endpoint Configuration Insufficient Information in Documentation Regarding Custom Auth Endpoint Configuration Jan 21, 2024
@benw-pusher
Copy link
Contributor

The response expected from an authEndpoint is defined at https://pusher.com/docs/channels/server_api/authorizing-users/#response.
It is not possible to pass additional properties to the endpoint - if this is required then you can use our onAuthorizer parameter to build and execute your own HTTP request / auth process to generate and return the expected auth information.

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