AirDiamond
11/13/2021, 7:44 PMMihai
11/13/2021, 8:30 PMbmarsden10
11/13/2021, 9:12 PMcurl -X POST '${SUPABASE_DB_URL}/rest/v1/<db-name>' \
-H "apikey: ${SUPABASE_ANON_KEY}" \
-H "Authorization: Bearer ${SUPABASE_ANON_KEY}" \
-H "Content-Type: application/json" \
-H "Prefer: return=representation" \
-d '{ "user_id": "<id>", ... }'
Other relevant info: Replication is enabled in the table in question. The cURL request works (a row is INSERTed).mukhtharcm
11/14/2021, 6:49 AMmukhtharcm
11/14/2021, 6:50 AMuser
11/14/2021, 7:18 AMsupabase.auth.setAuth(userToken.access_token)
Why the user is null? Everything looks good cause I can call table after that.
Also the access_token retrieve should I update header with it everytime ? How the refresh token is working if we are using something custom? For me netlify function as proxy.
Right now I am login set the token with the session on login. And i use the access token with setAuthchuy
11/14/2021, 2:10 PMuser
11/14/2021, 4:38 PMAirDiamond
11/14/2021, 5:07 PMjjj.westra
11/14/2021, 8:47 PMjjj.westra
11/14/2021, 8:48 PMconst { user, error } = await supabase.auth
.api
.resetPasswordForEmail('email@example.com')
jjj.westra
11/14/2021, 8:48 PMjjj.westra
11/14/2021, 8:49 PMconst { user, error } = await supabase.auth.update({password: 'new password'})
silentworks
11/14/2021, 9:28 PMsilentworks
11/14/2021, 9:29 PMsilentworks
11/14/2021, 9:34 PMerinstearns
11/14/2021, 11:34 PMBBB
11/15/2021, 6:00 AMchipilov
11/15/2021, 7:17 AMsockenguy
11/15/2021, 8:20 AMsilentworks
11/15/2021, 8:42 AMmharms
11/15/2021, 12:13 PMpcav
11/15/2021, 12:29 PMeverconfusedguy
11/15/2021, 12:29 PMeverconfusedguy
11/15/2021, 12:29 PMpcav
11/15/2021, 12:30 PMeverconfusedguy
11/15/2021, 12:30 PMeverconfusedguy
11/15/2021, 12:30 PMpcav
11/15/2021, 12:30 PMpcav
11/15/2021, 12:41 PM