magicseth
10/14/2022, 1:27 AMuser8923
10/14/2022, 4:20 AMredirectTo
attribute being present. Here is how I call the component:
<Auth supabaseClient={ supabase } redirectTo={ "http://localhost:3000" } appearance={ { theme: ThemeSupa } } />
I tried many forms for the redirectTo
option, including with an ending slash. In the console, http://localhost:3000
is my Site URL, and is also present in the Redirect URLs list.
The authentication happens but the redirect doesn't.Shelby
10/14/2022, 6:12 AMSolemensis
10/14/2022, 8:21 AMDil
10/14/2022, 11:58 AMven
10/14/2022, 12:08 PMconst {fields, files} = response;
const avatar = files.avatar;
// creates a valid name by removing spaces
const fileName = encodeURIComponent(
avatar.originalFilename.replace(/\s/g, "-")
);
// renames the file in the directory
fs.renameSync(avatar.filepath, fileName);
console.log(avatar)
const avatarData = fs.readFileSync(fileName)
const {data, error} = await client.storage
.from("site")
.upload("public/" + Date.now() + "-" + fileName, avatarData, {
cacheControl: "3600",
upsert: false,
});
davitykale
10/14/2022, 3:02 PMenyo
10/14/2022, 3:12 PMsupabase-cli
? Anytime I try to track I get Could not update presence timed out
thasmo
10/14/2022, 3:48 PMkermitbaby
10/14/2022, 4:38 PMVik
10/14/2022, 5:02 PMbegin
insert into public.profiles(id, username, join_date, private)
values(new.id, SOMETHING, now(), false);
return new;
end;
Arne
10/14/2022, 6:01 PMthasmo
10/14/2022, 9:06 PMjs
console.log(
await supabase
.from('projects')
.select('*')
);
just prints ...
json
{ error: null, data: [], count: null, status: 200, statusText: 'OK' }
Am I missing something when setting up supabase locally? Database does exists, table with a single row too.Deed
10/14/2022, 9:30 PMexport async function middleware(request: NextRequest) {
const {data} = await supabase.auth.getSession()
if (data) {
return NextResponse.redirect(new URL("/", request.url));
} else {
return NextResponse.redirect(new URL("/unauthorized", request.url));
}
}
towels42
10/14/2022, 10:50 PMcolumn
--------------
{
"foo.domain.com": {...},
"bar.domain.com": {...}
}
However, when I run a query like:
client.from("table").select("column->foo.domain.com")
or
client.from("table").select("column->'foo.domain.com'")
I get the result
{foo: null}
or an error
PGRST100, details: unexpected "'" expecting "-"
michel
10/14/2022, 10:51 PMcryptosi
10/14/2022, 11:37 PMjson
{ name: 'milk', categories: [ { name: 'food' }, { name: 'fridge' } ] }
So the above has milk as the primary table and then it has categories as nested values being passed back.user8923
10/15/2022, 12:03 AMBomzelis
10/15/2022, 12:06 AMDanM
10/15/2022, 12:47 AMmattposgate
10/15/2022, 6:07 AMThe Little Cousin
10/15/2022, 7:22 AMconst isSignedIn = () => supabase.auth.session()? supabase.auth.session() : false;
I'm getting;
Uncaught TypeError: supabase.auth.session is not a function
It used to works few weeks ago! Has the function been changed?itisnajim
10/15/2022, 8:30 AM[POP] 2022/10/15 08:14:28 info - 0.0423 seconds
time="2022-10-15T08:14:28Z" level=fatal msg="running db migrations: Migrator: problem creating schema migrations: CREATE TABLE \"schema_migrations\" (\n\"version\" VARCHAR (14) NOT NULL\n);\nCREATE UNIQUE INDEX \"schema_migrations_version_idx\" ON \"schema_migrations\" (version);: ERROR: no schema has been selected to create in (SQLSTATE 3F000)"
Pragy
10/15/2022, 8:02 AMView
with Invoker
security so that the RLS works on views.
Any timeline for the adoption of PostgreSQL15?jbergius
10/15/2022, 8:19 AMconst { data, error } = await supabaseServerClient(ctx)
.from('vendor_connections')
.select('*');
But I get a 404 and Page not found with the following error message:
TypeError: supabaseServerClient is not a function
Has someone encountered the same problem?GaryLake
10/15/2022, 9:22 AMwilkijg
10/15/2022, 2:06 PMjpp244
10/15/2022, 3:54 PMrevilo
10/15/2022, 4:14 PMtalpiven
10/15/2022, 4:21 PM