I've been using the example of the sveltekit auth helper (https://github.com/supabase-community/auth-helpers/tree/main/examples/sveltekit-email-password), which works really well. But i am having issues getting a POST request in the endpoint to work. Should i use supabaseClient or supabaseServerClient, and do i need withApiAuth() ? The example doesn't include a post request that uses .from to insert or update data
n
Needle
07/16/2022, 10:16 PM
Hello @MilfHunterLuci!
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.
m
MilfHunterLuci
07/17/2022, 1:11 AM
I managed to send the post request (using supabaseServerClient and passing it the request), i then got access to the users id by jwt decoding the
request.header.get('cookie')
, i wonder if there is a better way to access it?
s
silentworks
07/17/2022, 7:58 PM
Open an issue on the repo as a suggestion to add an example of that and I will get something done during this week.