anderjaska
10/06/2022, 4:31 PM/login
page if they end up on a protected route using withMiddlewareAuth
For some reason, and I've only noticed this today and am trying to figure out what I did, even after the user logs in, you still get redirected to /login
, unless you do a refresh of the page. Is this expected behavior? What could be causing it? thanks!VWL Tobias Hassebrock
10/06/2022, 4:31 PMjaypinho
10/06/2022, 4:36 PMid
column that was already populated with incrementing integers. When I now try to add an additional row to this table (which I've set as a Primary Key and as an Identity column), I keep getting the "duplicate key value violates unique constraint" error. I've looked around on GitHub and here on Discord for how to solve this, which seems to revolve around resetting the sequence to start at the next id
integer after the max one already in the table, but I cannot for the life of me figure out what SQL query I should be running to do this (or even how to find the name of the "sequence"). Please help?Seye
10/06/2022, 5:35 PMMilou
10/06/2022, 5:48 PMCanRau
10/06/2022, 6:47 PMsql
DELETE FROM auth.users CASCADE WHERE id = '0247b05d-dd45-4b3b-a9ce-ac8f00fabe9a';
sql
DELETE FROM auth.users CASCADE;
Talking about hosted supabase on the free plan, we wan't to adopt supabase for our startup.Corentin_dev
10/06/2022, 8:11 PMthomas00
10/06/2022, 9:18 PMvashmeen
10/06/2022, 9:54 PMmerlo
10/07/2022, 1:04 AMauth.some_property
(ie current_user.some_property
), what would be the right syntax for a RLS?aar2dee2
10/07/2022, 5:57 AMts
const { error } = await supabaseClient.auth.signIn(
{ email: email },
{
redirectTo: `http${
process.env.NODE_ENV == "production" ? "s" : ""
}://app.${process.env.NEXT_PUBLIC_APP_DOMAIN}/dashboard`,
}
);
Reference doc for setting up SSO in Discourse: https://meta.discourse.org/t/setup-discourseconnect-official-single-sign-on-for-discourse-sso/13045hov
10/07/2022, 6:05 AMpg_idkit
and anything that will allow me to use xid
. Am I missing something? Will this extension me added?Karmotrine
10/07/2022, 7:09 AMreturning
parameter but it has no description on how it is used/invoked.Gilmoro
10/07/2022, 7:29 AMthestepafter
10/07/2022, 7:39 AM-- missing source code
. I need to increase the timeout of HTTP calls from 5 seconds to 10 seconds if possible.cdedreuille
10/07/2022, 8:41 AM{ }
it still show the error. Do you know what it could be?FunHellion
10/07/2022, 8:54 AMconsole.log
in there so I could see if the event even happens, but it just does not show up.
typescript
useEffect(() => {
supabase.auth.onAuthStateChange(async (event, session) => {
console.log('AUTH STATE CHANGE', event, session);
if (event === 'PASSWORD_RECOVERY') {
alert('It works');
}
});
}, []);
Any ideas on what might be wrong?
https://supabase.com/docs/reference/javascript/auth-api-resetpasswordforemail#reset-password-reactenyo
10/07/2022, 9:44 AMSTILLWATER;
10/07/2022, 9:56 AMrbkayz
10/07/2022, 11:12 AMMonk
10/07/2022, 12:21 PMGaryLake
10/07/2022, 12:22 PMTheDanniCraft
10/07/2022, 12:52 PMalvaro
10/07/2022, 2:06 PMcbunge3
10/07/2022, 2:10 PMMashwishi
10/07/2022, 3:30 PMrelation "public.profiles" does not exist
the reason i encounter this is I still don't have the table for profiles
however when i tried to add the id
, username
, updated_at
which this are the items i need i encounter a new error which is invalid input syntax for type bigint: "uuidhereofauser"
Would really appreciate if someone teach me what are the requirements or setup of table for this, my only knowledge was mariadb and mongodb but I want to try this new realtime database with super easy auth implementation.cbunge3
10/07/2022, 3:48 PMBartWestenenk
10/07/2022, 3:57 PMjs
error - ./node_modules/@supabase/auth-helpers-react/src/components/UserProvider.tsx
Module parse failed: Unexpected token (22:21)
You may need an appropriate loader to handle this file type, currently no loaders are configured to process this file. See https://webpack.js.org/concepts#loaders
|
| let networkRetries = 0;
> let refreshTokenTimer: ReturnType<typeof setTimeout>;
|
| const UserContext = createContext<UserState | undefined>(undefined);
CanRau
10/07/2022, 4:04 PMmail@gmail.com
& mail+label@gmail.com
, I did that before in my manual setup so that people can easily switch between OAuth providers, their email address and don't have to remember if they used a + address or not and also that using a + address and then an OAuth provider would just work. Now I'm curious what people actually expect. I know that it got me a couple of times creating unwanted accounts instead of logging into an existing.
Also how could I do that currently?
So far I added a email_raw
column to my profile
table and auto populate it from generateLink
data
so I'll then be able to query profiles to see if there's already an associated profile with an email.
What else am I missing?
Also asking because maybe people want to be able to create multiple accounts using just +addresses, though I think we don't actually want to allow that anyway.NB
10/07/2022, 4:11 PM