FeatureFuel
3

Realtime should allow user's jwt access token to connect from web client

Source: supabase/supabase#4086 · opened by @kk21
Hi,

When I used the user's jwt access token in web client's createClient() to subscribe to Realtime, I got repeated WebSocket connection failed errors.

However the subscription works using the anon or service key in createClient().
Using the anon key in createClient() and then setAuth(user's jwt) also works.

I wonder if using the user's jwt directly in createClient() should work so that the web client does not need the anon key?

Thanks.

No pledges yet. Be the first to back this.

Make a pledge

Pledge your monetary support if this feature is added.

$

Comments

No comments yet.

Replying to

Add a comment

What do you think about this feature request?


Similar requests