Realtime should allow user's jwt access token to connect from web client #4086
Unanswered
kk21
asked this question in
Feature Requests
Replies: 1 comment
|
@kk21 I don't think it's possible at the moment to pass in the user's token directly into |
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
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.
All reactions