Quick question. When users auth is refreshing is t...
# supabase-kt
c
Quick question. When users auth is refreshing is there anything in sessionStatus that tells me that? I'm remote (not laptop to try) and just looking at the docs it seems like there is no way to tell when it's refreshing. simply only if refresh fails. Is that about right?
j
Yea you cant tell if the client currently tries to refresh
c
cool. thats what i thought (i dont actually need to know), we're just building an abstraction layer on top of this (my lead is doing some weird shit. idk), but we basically had a case where during refresh the sessionStatus was going into essentially a load/initialization state instead of staying auth'd. lol
SessionStatus related. Any reason why there's no "loading" state? in my head im fighting with the fact that it doesn't exist. and it makes sense it doesn't. but now my TL wants me to add a loading state during sign in and im like wait. should there be a loading state?
j
In what sense a loading state, when would it occur? The status is more like a session exists or it doesnt. The are special cases like initializising which is set in the beginning and until a possibly expired session is refreshed. RefreshError also if the session expired and couldnt be refreshed
c
thanks. i think it just helps to hear you agree that loading state doesn't really make sense. appreciate the two cents.