batuhanbilginn
12/06/2021, 11:21 AMsilentworks
12/06/2021, 12:33 PMSteve
12/06/2021, 3:28 PMXzeta
12/06/2021, 5:43 PMuseEffect(() => {
const userSession = supabase.auth.session();
setSession(userSession);
if (userSession) {
getProfile(userSession.user.id);
} else {
setSession((s) => ({ ...s, profile: null }));
}
supabase.auth.onAuthStateChange((_event, session) => {
setSession(session);
if (session) {
getProfile(session.user.id);
} else {
setSession((s) => ({ ...s, profile: null }));
}
});
}, []);
Muphet
12/06/2021, 5:47 PMVictor Peralta
12/06/2021, 7:29 PMVictor Peralta
12/06/2021, 7:29 PMMuphet
12/06/2021, 7:36 PMProdigy7kX
12/06/2021, 8:15 PMProdigy7kX
12/06/2021, 8:15 PMdipankarmaikap
12/06/2021, 8:17 PMauth.uid() = author_id
2. public can read published posts
works is_published = true
3. authenticated user can read all his posts
How to achive this? I can only see published postProdigy7kX
12/06/2021, 8:19 PMdipankarmaikap
12/06/2021, 8:19 PMdipankarmaikap
12/06/2021, 8:25 PMselect is_published = true
even loggedin i cant view the postgaryaustin
12/06/2021, 8:41 PMclaud9
12/06/2021, 9:02 PMuser
12/06/2021, 9:18 PMuser
12/06/2021, 9:19 PMLOYAL
12/07/2021, 1:25 AMKhan W
12/07/2021, 2:35 AMProdigy7kX
12/07/2021, 2:38 AManothercoder
12/07/2021, 2:54 AMcjog
12/07/2021, 2:54 AManothercoder
12/07/2021, 2:55 AMProdigy7kX
12/07/2021, 3:05 AManothercoder
12/07/2021, 3:07 AMProdigy7kX
12/07/2021, 3:07 AMProdigy7kX
12/07/2021, 3:07 AMNiFTiChristian
12/07/2021, 4:38 AMKhan W
12/07/2021, 5:19 AM