How are you guys refreshing the user's access_token for infinite sessions? (Supabase auth)
I 'm not using the Supabase SDK on the frontend , so it seems like I need to call supabase .auth .refreshSession ( ) from an edge function ? Is this how you guys are doing it ? I .e . every time the user goes to the dashboard , call this endpoint to refresh their auth ? Or could store the expiry date in local storage to avoid calling the endpoint as often . thats a good question I 'm looking for a good solution too you could look up on page load , wheter the token is like 30 minutes or less away from expiration (assuming a user will be no longer than 30 minutes on one page , so that it is always "right on time " ) and if true , given that on page load , fire the refresh π1