Ape R Us
04/03/2022, 7:20 AMexport 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/03/2022, 7:20 AM/title
command!
We have solved your problem?
Click the button below to archive it.Ape R Us
04/04/2022, 8:03 AM