Lukas V
08/05/2022, 5:18 PMOne drawback is that claims don't get updated automatically, so if you assign a user a new custom claim, they may need to log out and log back in to have the new claim available to them.
I started thinking if thats even good solution for subscriptions?
Is it better to simply have a read only, table with current user subscription status and just check for status every time user makes a call to use one of the "premium" features?caesarp
08/05/2022, 5:23 PMknajjars
08/05/2022, 5:54 PMandreibv96
08/05/2022, 6:34 PMimport { createClient } from "https://deno.land/x/supabase@1.3.1/mod.ts"
so I can use the supabaseClient basic functions such as insert. const supabaseClient = createClient(dbUrl, publicAnonKey, { schema: 'public' });
should do the initialization, but I think something is wrong there, or maybe I am missing something. The error states the following: {
error: {
message: "FetchError: scheme 'postgres' not supported",
details: "",
hint: "",
code: ""
},
data: null,
body: null,
count: null,
status: 400,
statusText: "Bad Request"
}
. Has anyone experienced that before? Thank you!!cryptosi
08/05/2022, 6:51 PMusers:
id
username
user_owner_user:
id
user_id -> ref users.id
owner_user_id -> ref users.id
I want to create a query like so:
db.from('users')
.select(`
*,
ownerUser!user_owner_user(*)
`);
Getting the following error:
Try changing 'users' to one of the following: 'users!user_owner_user', 'users!user_owner_user'. Find the desired relationship in the 'details' key."
Alan Coppin
08/05/2022, 9:47 PM49Ryann
08/06/2022, 4:41 AMSTILLWATER;
08/06/2022, 8:42 AMrankala
08/06/2022, 10:06 AMHal
08/06/2022, 11:17 AMKickNext
08/06/2022, 11:23 AMLukas V
08/06/2022, 12:20 PMemail, height, weight
to only be accessed by the user alone.
In this situation should I create a separate table users-public
where I only store name, nickname, profile photo
and allow public read access, or is there some form of column level security where I only have one users table, but "lock" columns that contain sensitive data, if thats even possible?caesarp
08/06/2022, 2:32 PM49Ryann
08/06/2022, 2:39 PMMrPalixir
08/06/2022, 4:51 PMKiteflow
08/06/2022, 8:13 PMrankala
08/06/2022, 8:54 PMstudio.my-domain.tld
and kong on supabase.my-domain.tld
. As a result, my brwoser blocks the api request with mixed content. Do you have an idea, how i can solve this?Ape R Us
08/06/2022, 9:46 PMDomcario
08/06/2022, 11:56 PM49Ryann
08/07/2022, 1:33 AMdebabrata
08/07/2022, 4:56 AMcryptosi
08/07/2022, 8:22 PMts
const q = db.from('items')
.select(`
*,
product:product_id!inner(
*,
primaryCategory:primary_category_id!inner(*),
category:category_id!inner(*),
subCategory:sub_category_id!inner(*)
)
`);
const vals = ['cups', 'food', 'clothes'].join(',');
q.or(`
product.primaryCategory.slug.in.(${vals}),
product.category.slug.in.(${vals}),
product.subCategory.slug.in.(${vals})
`);
React noob
08/07/2022, 9:06 PMfailed to update pg.columns with the given ID: cannot cast type bigint to uuid
you can't change the type of the id after create the table ?getpost
08/08/2022, 11:49 AMuser
08/08/2022, 1:33 PMKellen Mace
08/08/2022, 1:47 PMpsql -h $NEW_DB_URL -U postgres -f dump.sql
command here (https://supabase.com/docs/guides/database#migrate-the-database) though, I get :
psql: error: connection to server at "krpyriciwjyezbzvkmjo.supabase.co" (104.18.27.135), port 5432 failed: Operation timed out
Is the server running on that host and accepting TCP/IP connections?
connection to server at "krpyriciwjyezbzvkmjo.supabase.co" (104.18.26.135), port 5432 failed: Operation timed out
Is the server running on that host and accepting TCP/IP connections?
Does anybody know what I can do to correct that?enti
08/08/2022, 2:02 PMconst { user, session, error } = await supabase.auth.signUp(
{
email: 'example@email.com',
password: 'example-password',
},
{
data: {
first_name: 'John',
age: 27,
}
}
)
But do I need to create something on auth.users? The only columns there right now are 'Email', 'Phone', 'Provider', 'Created', 'Last Sign In' and 'User UID'. No metadata column or something.
Or is it better practice to create a userdetails
table separately?React noob
08/08/2022, 5:53 PMts
const {user,error} = await supabase.auth.signIn({
email: _data.email
})
if(user){
await supabase.from('profiles').insert([{id:user.id, username:'John Doe'}])
}
}
I'm trying to create a user with Magic Link and create the table but nothing happenomar
08/08/2022, 5:59 PM