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

Send Valid User Access Token to Realtime Server #52

Open
w3b6x9 opened this issue Nov 29, 2021 · 2 comments
Open

Send Valid User Access Token to Realtime Server #52

w3b6x9 opened this issue Nov 29, 2021 · 2 comments
Labels
enhancement New feature or request Stale

Comments

@w3b6x9
Copy link
Member

w3b6x9 commented Nov 29, 2021

Feature request

Realtime server is now checking every minute to verify the validity of the user access token and storing updated user information from the JWT to Realtime's subscription table (used by Realtime WALRUS).

Describe the solution you'd like

  1. Realtime client pushes the user access token to all channels every heartbeat, which defaults to 30 seconds (see ref, ref, and ref).
  2. Supabase client sends latest and valid user access token on auth events SIGNED_IN and TOKEN_REFRESHED (see ref)*.
  3. Supabase client removes all subscriptions on auth event SIGNED_OUT (see ref)*.

*fix: improve auth for realtime row level security supabase-community/supabase-py#303

Additional context

Realtime Security (WALRUS) will be launched very soon so we'll mention that additional Supabase client libs, like this one, will be compatible with the new Realtime some time in the near future.

@w3b6x9
Copy link
Member Author

w3b6x9 commented Dec 23, 2021

There's a recent realtime-js fix that will update the user_token used for channel (subscription) reconnection: supabase/realtime-js#126

@anand2312 anand2312 added the enhancement New feature or request label May 14, 2022
@anand2312 anand2312 mentioned this issue Jul 11, 2022
@J0 J0 transferred this issue from supabase/supabase-py Jan 23, 2023
Copy link
Contributor

github-actions bot commented May 2, 2024

This issue is stale because it has been open for 365 days with no activity.

@github-actions github-actions bot added the Stale label May 2, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request Stale
Projects
None yet
Development

No branches or pull requests

2 participants