Hello. I'm going thru the Egghead tutorial. Is th...
# help
g
Hello. I'm going thru the Egghead tutorial. Is the updated way to handle session on this step like this?
Copy code
supabase.auth.session = () => ({
    access_token: token,
    token_type: 'Bearer',
    user
  });
Or should token_type be something different?
n
Hello @Gnee! This thread has been automatically created from your message in #843999948717555735 a few seconds ago. We have already mentioned the @User so that they can see your message and help you as soon as possible! Want to unsubscribe from this thread? Right-click the thread in Discord (or use the ``...`` menu) and select "Leave Thread" to unsubscribe from future updates. Want to change the title? Use the ``/title`` command! We have solved your problem? Click the button below to archive it.
j
Hey Gnee, this looks incorrect to me. supabase.auth.session is a function. I'm not sure why you are trying to create a new function?
n
Gnee (2022-05-12)
g
Maybe?
This is a screenshot of the Egghead course
and from GH repo
j
It looks like it's getting you to recreate the function for some reason. I don't have the context of the egghead tutorial sorry.
g
Yea, I'm looking thru the docs that cover this. not sure..
ok looks like what I added works. For reference, it's to pass cookies from the server to Supabase.. which were not being set automatically