supa okezie
04/30/2022, 8:52 AMyarn add @supabase/auth-helpers-nextjs, I get the error An unexpected error occurred: "https://registry.yarnpkg.com/@supabase%2fauth-helpers-nextjs: Not found". What can I do?Kadnium
04/30/2022, 9:38 AMsupa okezie
04/30/2022, 9:39 AMhoesmean
05/01/2022, 3:05 PMgaryaustin
05/01/2022, 3:24 PMLucas T
05/02/2022, 3:28 PMszed
05/02/2022, 9:13 PMconst sub = this.$supabase
   .from("actions")
   .on("*", (data) => {
     console.log(data);
   })
   .subscribe();
  console.log(sub);
My subscription look like this. The console.log(sub) shows that's it's seems to be ok and joined  - Replication on my table is enabled, I can see under the websocket tab the events occuring, and i can see the subscription being created under the realtime schema in the Supabase Table's UI.
So everything seems good, but i'm never reaching the callback. Nothing happen.
I though it could be because of some RLS rules, but even with it being disabled on my table, nothing.
Stack in Nuxt 2.x and this is inside a mounted method on my Index page. And i'm using my anon/public key
Any idea? 🙏garyaustin
05/02/2022, 9:34 PMlavenderlav
05/04/2022, 8:55 AMgetUserByCookie (using nextjs)Martin Kmieciak
05/04/2022, 9:05 AMexport const getServerSideProps: GetServerSideProps = async ({ req }) => {
 // Get our logged user
 const { user } = await supabase.auth.api.getUserByCookie(req);
 // Check if the user is logged
 if (user === null) {
  // Redirect if no logged in
  return { props: {}, redirect: { destination: "/auth/login" } };
 }
 // If logged return the user
 return { props: { user } };
};lavenderlav
05/04/2022, 12:31 PMgetUserByCookie a server-side to be used or client side to be used?lavenderlav
05/04/2022, 12:45 PMgetUserByCookie workinglavenderlav
05/04/2022, 12:45 PMreq.cookies and the only cookies I got is google analyticssilentworks
05/04/2022, 5:47 PMgetUserByCookieXzeta
05/05/2022, 3:50 AMjaitaiwan
05/09/2022, 12:17 AMjaitaiwan
05/09/2022, 1:13 AMgralp
05/09/2022, 8:01 PMjaitaiwan
05/09/2022, 10:57 PMyuyu
05/10/2022, 3:32 AMyuyu
05/10/2022, 3:41 AMfauh45
05/10/2022, 2:11 PMUnexampledSalt
05/11/2022, 1:35 AMgaryaustin
05/11/2022, 2:47 PMF0rce
05/11/2022, 6:59 PMF0rce
05/11/2022, 6:59 PMedgaras
05/12/2022, 1:19 AMjaitaiwan
05/12/2022, 1:22 AMjaitaiwan
05/12/2022, 1:22 AMedgaras
05/12/2022, 1:41 AMpricerange_from and pricerange_to. I fetch data, concatenate and display in a form select as range option values as such: 5-10, 10-20, 50-10 etc. 
Now user can update their profile by selecting a different price range. But I don't want them to choose a different range than given options. Of course only hackers will do that. But they could create their own option 100-200 and, as a result, update their pricerange_from and pricerange_to in the database to higher numbers than allowed.