Context: Stack: WeWeb + Xano Auth plugin + Xano Realtime
Problem: The RealtimeAuthToken is correctly stored in localStorage (same value as AuthToken), meaning the user is authenticated via Xano Auth plugin. However, when WeWeb opens a Xano Realtime channel, the WebSocket connection is treated as anonymous by Xano — resulting in the error: "Anonymous clients cannot join this channel" when “Anonymous Clients” is unchecked in Xano Realtime channel permissions.
Steps to reproduce:
- User logs in via Xano Auth plugin →
isAuthenticated: true,RealtimeAuthTokenpresent in localStorage - Xano Realtime channel configured with “Anonymous Clients” unchecked
- WeWeb workflow triggers
Realtime | Open channel - WebSocket join fails with
"Anonymous clients cannot join this channel"
Expected behavior: WeWeb should automatically pass the RealtimeAuthToken as auth token during the WebSocket connection/channel join, since it’s already available in localStorage.
Workaround: Checking “Anonymous Clients” in channel permissions allows the connection, but removes the ability to use auth_table/auth_id targeting in api.realtime_event for user-specific broadcasts.
Reference: Similar issue reported here without resolution: Xano Realtime | Open Channel with auth
Please could we check this together and fix it possibly ?
Thank you so much an advance.