Hey all- does anyone know if there's a solution to...
# help
b
Hey all- does anyone know if there's a solution to the issue regarding
signIn()
with providers returning
null
?
a
Unsolved issue for
supabase-js
@User
o
It's logic that providers return null @User
wait did I miss my mention? xD
Ups sorry
I mean @User
b
hah
o
When you signin with a provider, you're redirected to the provider's website, so your website can't get that data
b
Well as of late, even after a succesfull login and redirect,
supabase.auth.session()
and
supabase.auth.user()
both still return
null
unless I do a full page refresh.
In this case I'm using a login popup window to auth github, and ideally the page wouldn't refresh, because my app works both offline and online.
So users can be working, and login to save stuff without having to reload the window
b
Brady is a cool name its okay lol
o
This is an issue I got some hours ago, you can see a discuss I got here: #870415470715625512
b
tfw threads are ephemeral
o
Weeeeell, I just archived it
It's not really ephemeral xD
b
ah ok
o
Like you just can't send a message anymore when it's archived, that's all
b
hmm, I still can't click the link it just says
#deleted-channel
not sure if it's different for you
(it's blue cus highlighted the text)
o
Oooooooh
Wait, so members who are not in the thread can't see them? Or because I'm mod I can see them? so weird
I need to figure that
b
yea not sure
o
b
Yea I thought this would work, but I've already got a listener running. I believe it's not triggered in this case.
o
hmmm, it should, it works fine for me, it should work for you too
b
weird 🤨
perhaps it's because the use-case I described- I can't have the window redirect / reload because I need to preserve state. So I have a popup window handling the auth, and inside the popup-window it redirects to
/auth/success
which displays a success message before closing itself. It used to also pass the
session
back to the main window, but that no longer works.
o
I never tried using this way, sorry
b
No worries- I'll add some of the info to the gh issue.
Thanks though!