Anyone tried this library? https://github.com/supa...
# off-topic
k
Anyone tried this library? https://github.com/supabase-community/supabase-auth-helpers I just installed it on a branch and it added more than 150kB to the "First load JS" for every single page on the site.
s
Maybe this is due to it loading the
supabase/ui
library with it, but not sure if this would load if you aren't using that part of the library. Can you give an example of the code you are using please?
k
I just imported UserProvider and supabaseClient from the supabase-auth-helpers library and wrapped my app in the . Exactly as shown in the readme: https://github.com/supabase-community/supabase-auth-helpers/blob/next/src/nextjs/README.md
First load JS -- Before: 95.6 kB Forst load JS -- After: 251 kB
s
Ok thanks we'll have a look into this