https://supabase.com/ logo
I just saw the new (or at least new to me!) auth s...
# gotrue
a
I just saw the new (or at least new to me!) auth setting for reuse interval. from the docs, it sounds like it's
REFRESH_TOKEN_REUSE_INTERVAL
and that it only applies if
REFRESH_TOKEN_ROTATION_ENABLED
is true. I'm not on a self-hosted server, so is it safe to assume that
REFRESH_TOKEN_ROTATION_ENABLED
is defaulted to true for me? as a follow up, I was a bit confused by the docs that said:
The reuse interval for a refresh token allows for exchanging the refresh token multiple times during the interval to support concurrency or offline issues.
my understanding was (loosely) that refresh tokens would not expire, and would only be revoked on logout or if the client attempts to use one. would this setting primarily be helpful if there were multiple separate attempts to refresh using the same token? or is there a different edge case that this is addressing? just trying to wrap my head around what it does and if we would want it enabled (I assume yes). relevant docs that I found are here, there might be others that I'm missing: https://supabase.com/docs/reference/tools/reference-auth thanks!