Skip to content

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

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

What happens to auth.sessions / refresh_tokens on the server? #12132

Closed
hyperknot opened this issue Jan 5, 2023 · 1 comment
Closed

What happens to auth.sessions / refresh_tokens on the server? #12132

hyperknot opened this issue Jan 5, 2023 · 1 comment
Labels
documentation Improvements or additions to documentation

Comments

@hyperknot
Copy link

hyperknot commented Jan 5, 2023

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.

@hyperknot hyperknot added the documentation Improvements or additions to documentation label Jan 5, 2023
@hf
Copy link
Contributor

hf commented Feb 2, 2023

Hey @hyperknot,

We have a PR open to deal with this supabase/auth#875. It should be going in fairly soon.

We use GoTrue for app.supabase.com and aside from having somewhat large storage we do not experience any performance issues because of the large tables. In general you shouldn't worry about an implementation detail like this for your app.

I'll transfer this issue to the main Supabase repo and convert it as a discussion.

@hf hf transferred this issue from supabase/auth Feb 2, 2023
@supabase supabase locked and limited conversation to collaborators Feb 2, 2023
@hf hf converted this issue into discussion #12133 Feb 2, 2023

This issue was moved to a discussion.

You can continue the conversation there. Go to discussion →

Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

No branches or pull requests

2 participants