Nathan
11/27/2021, 4:01 AMNathan
11/27/2021, 4:05 AMDeleted User
11/27/2021, 6:43 AMjs
const { error } = await supabase.auth.signIn(
{
provider: "github",
},
{
redirectTo: `http://localhost:3000${window.location.pathname}${window.location.search}${window.location.hash}`,
}
);
The problem is that it always redirects to my main page I specified in the dashboard's Settings.
http://localhost:3000
is whitelisted in my dashboard's settings, however, it only works if it's only http://localhost:3000
and nothing else, such as http://localhost:3000/...
.
?redirect=http://localhost:3000/...
and handle the redirect myself. However, I found this not ideal as I have my sign in component in my navbar.anothercoder
11/27/2021, 8:18 AMsilentworks
11/27/2021, 4:03 PMDeleted User
11/28/2021, 5:33 AMdeleteUser()
but that need to be done on the server.Khan W
11/28/2021, 7:26 AMharshcut
11/28/2021, 1:29 PM/login
and a /u/overview
route. When the user logs in from /login
, it triggers a redirect before the cookie is set. - https://github.com/supabase/supabase/discussions/2842
My github repository - https://github.com/harshcut/ultimo-pase/tree/main/pagesNathan
11/29/2021, 8:24 PMt
is not possible. (throws error)
For better context, what I am trying to do is use my URL params to create a select query. For example, /inventory?make=Nissan&model=Maxima&year=2018,2021
.
I'm currently passing my URL params as an object into match()
. This works perfectly until I have a range in the params, such as year=2018,2021
. This will not work. Obviously I need to use the filter methods for the ranges.
And this here lies the problem .. or inconvenience. I'm going to have to write multiple IF statements for each possible combination of ranges. (year
, price
, & miles
).
Thoughts on possibilities? Thanks!mikk
11/30/2021, 7:50 AMmikk
11/30/2021, 7:51 AMchipilov
11/30/2021, 9:57 AMmikk
11/30/2021, 10:05 AMsupabase.rpc('get_templates', { slug_input: slug }).select('title, slug, thumbnail_url')
in parallel with the original query with Promise.allchipilov
11/30/2021, 10:56 AMlaznic
11/30/2021, 4:50 PM.eq
check using a value from the query? So for example, if I'd want to filter some relationships out of based on table.col_x
value, is it possible or do I have to do a view/procedure to do this?
supabase.from('table').select(`...`).eq('relation.inner.col_y', 'table.col_x')
egnus
11/30/2021, 5:51 PMMihai
12/02/2021, 10:00 AMlaznic
12/02/2021, 10:52 AMNull
12/02/2021, 6:22 PMNull
12/02/2021, 6:25 PMleynier
12/02/2021, 7:22 PMFreakDJ
12/03/2021, 1:29 AManothercoder
12/03/2021, 1:37 AMFreakDJ
12/03/2021, 1:46 AManothercoder
12/03/2021, 1:51 AMgaryaustin
12/03/2021, 1:52 AMKailiKameoka
12/04/2021, 12:56 AMBazze
12/05/2021, 7:01 AMegnus
12/05/2021, 9:41 AM!inner
feature for joining tables.
Given 2 tables, Users
and Roles
for instance. If I activate count
and filter by a Correct filter of User_id but *an Inexistent Incorrect role inner filter * the count will return 1
but with no data in the array.
javascript
const {data, error, count} = await supabase.from('users')
.select('*, role:roles!inner(*)', {count: 'exact'})
.eq('user_id', 123) // This is a matching correct user
.eq('role.name', 'whatever') // This will never be true.
data.length === 0 // true
count === 0 // false (This should be true)
count === 1 // true (This should be false)
I need confirmation but I think this is a bugEduardo Lopez
12/06/2021, 12:14 AM