Hey guys, is this tutorial working? https://supert...
# support-questions-legacy
b
r
hey @berteotti the demo app doesn't work cause Supabase pauses the instance we have. However, if you replace the credentials with your Supabase credentials, it should work fine
b
That's what I did, but it seems to not be working
r
what issues are you facing?
@jscyo can help here
j
Hey @berteotti what error are you getting?
b
This is my supabase client
Copy code
supabase = createClient(
      process.env.NEXT_PUBLIC_SUPABASE_PROJECT_URL as string,
      process.env.NEXT_PUBLIC_SUPABASE_PUBLIC_ANON_KEY as string,
      {
        global: {
          headers: {
            Authorization: `Bearer ${access_token}`,
          },
        },
      }
    )
  }
When I call this
Copy code
const data = await getSupabase(token).auth.getUser()
I get an 500 error
r
that seems to be an issue with Supabase returning 500 - is there any error message that's coming along with it?
b
this is the error
r
might wanna ask supabase support for this
also, you don't need to use their auth at all if you are using supertokens
b
got it
I think it's working
r
cool
b
When I fetch all users I just receive the user related to the token
And that's what I need
Thank you!
r
cool
happy to help 🙂
b
Only thing I'm worried about is how to refresh the token
r
the supabase token or supertokens token?
b
My own token, I'm not using supertokens yet
r
right
b
Do you have a good way to handle it?
you (supertokens)
r
so when you use supertokens, then refreshing happens on its own
b
ok, awesome