Ape R Us
04/10/2022, 11:53 PMexport const user = readable(null, (set) => {
set(supabase.auth.user());
const unsubscribe = supabase.auth.onAuthStateChange((_, session) => {
session ? set(session.user) : set(null);
});
return () => {
unsubscribe.data.unsubscribe();
};
});
Needle
04/10/2022, 11:53 PM/title
command!
We have solved your problem?
Click the button below to archive it.