24 Replies
CODE IN THE SERVER

heres the code in the NEXT JS FRONT END PROJECT
the app/client
so basically, the website sends a fetch request to that endppoint on my server
to reset password
and it passes the access token
and so i want to reset the password based on that access token, is that possible or how do i do this
I have even tried asking calude, gpt, deepseek, and all failed at solving this puzzle
so for anyone who knows, they are better than the top 3 LLMs
To be crystal clear, the exact code i need help with is here

somehow the server has to know what session we talking about
based on the passed access token
do you know what claims are?
no
you should learn that for sure
how does that relate to what im doing tho
it has to do with tokens. they actually store information. so might be related
so what do they do for me, imagine i use supabase auth login, the user logs in
i pass that access token as a cookie
for the front end to use whenever it makes any request to the server
where does this claim play a part in here
idk how supabase does sessions
you can get like the user name from the token
maybe it has some info you need to make the session work, I don't know
It's an idea
true, i never thought of mentioning claims services stuff to the LLMs
perhaps that would have given them some thought
But actually, i was speaking to th LLM earlier
and i think its found a soltuion to my issue
will try it out but yea
what are the params to that method? SetSession
the empty string and the true
you should use named args probably
access token and refresh token
i only had the access token
refresh token i dont even know where id get from tbh, meh

Heres what i got
im gonna be calling some endpoint on supabase
directly, and passing my payload and that will update the user
so rather than doing it through the supabase client i just do like this
might work
you have configured something wrong if that works
with the client
maybe didn't put in the right base url or app name or something
im not sure how you think so
why wouldnt that work
well if it works with HttpClient, then your supabase client abstraction doesn't send the requests correctly
so it's probably been misconfigured
again, assuming rawdog http works
well it works idk
Unknown User•6d ago
Message Not Public
Sign In & Join Server To View
hmhmhm
im guessing
someting like this will do?
Unknown User•6d ago
Message Not Public
Sign In & Join Server To View