-
Notifications
You must be signed in to change notification settings - Fork 76
Closed
Description
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
- Realtime client pushes the user access token to all channels every heartbeat, which defaults to 30 seconds (see ref, ref, and ref).
- Supabase client sends latest and valid user access token on auth events
SIGNED_IN
andTOKEN_REFRESHED
(see ref)*. - Supabase client removes all subscriptions on auth event
SIGNED_OUT
(see ref)*.
*fix: improve auth for realtime row level security #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.
Metadata
Metadata
Assignees
Labels
No labels