Sign channel auth
sign_channel_authGenerate auth signatures clients need to subscribe to private or presence channels, matching your auth endpoint for testing and debugging mismatches. Presence channels need channel_data with user_id.
Instructions
Compute the auth signature a client needs to subscribe to a private- or presence- channel, exactly as your auth endpoint would return it. Useful for testing an auth flow or debugging a signature mismatch. Presence channels need channel_data with a user_id.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| channel | Yes | A "private-" or "presence-" channel. | |
| socket_id | Yes | Socket id of a connected client, from realtime:connection_established (e.g. "node-eu-1.42"). | |
| channel_data | No | Presence member data, e.g. {"user_id":"42","user_info":{"name":"Ada"}}. Required for presence channels. |