Update apps/www/_blog/2022-11-08-authentication-in-ionic-angular.mdx

Co-authored-by: Stojan Dimitrovski <sdimitrovski@gmail.com>
This commit is contained in:
Ramiro Nuñez DosioandStojan Dimitrovski authored and GitHub committed 2022-11-08 15:18:09 +00:00
1 parent 4af40d6dba
commit fa3e3c8edf
1 file changed
+2 -2
@@ -117,10 +117,10 @@ create policy "The owner can delete a group." on groups for
-- Message Policies
create policy "Authenticated users can read messages." on messages
for select using (auth.role() = 'authenticated');
for select to authenticated using (true);
create policy "Authenticated users can create messages." on messages
for insert with check (auth.role() = 'authenticated');
for insert to authenticated with check (true);
```
Now we also add a cool function that will automatically add user data after registration into our table. This is necessary if you want to keep track of some user information, because the Supabase auth table is an internal table that we can't access that easily.