I'm creating an Edge Function and want to use the ...
# help
n
I'm creating an Edge Function and want to use the example where the auth context is set, however, whenever I pass an authenticated jwt token, the user object remains null. What am I doing wrong?
Copy code
const { user } = supabaseClient.auth.setAuth(req.headers.get('Authorization')!.replace('Bearer ', ''))
    console.log(user)
n
Hello @Nin! 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.
n
Ahh I misunderstood setAuth ok ok my bad.
n
Thread was archived by @Nin. Anyone can send a message to unarchive it.