This issue was moved to a discussion.
You can continue the conversation there. Go to discussion →
What happens to auth.sessions / refresh_tokens on the server? #12132
Labels
documentation
Improvements or additions to documentation
I'm trying to understand persistence Supabase Auth in this discussion: #11100
So far it's quite lonely, I'm only answering myself. One question I cannot find an answer to is what happens with the auth.sessions / refresh_tokens on the server?
If these are cleaned up at regular intervals, when exactly and how can we control this? This would be pretty much the most important setting on the dashboard, much more important than the "JWT expiry limit".
If these are not cleaned up then how do people use Supabase in production? I mean these tables would grow indefinitely with mostly useless leftover data. Over time, performance will degrade and you'll pay for this in storage costs.
Can someone from Supabase comment on this? I've spent a few hours debugging the client behaviour on my own, it'd be so nice if someone could shed some light on the server part.
The text was updated successfully, but these errors were encountered: