ยฉ 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabaseโ€ข6mo agoโ€ข
9 replies
nicolas06875

Help for session/auth

Hi everyone,

Started using supabase yesterday and focused on auth system.
Now, I have a hard time with RLS/policies mechanic.

I have a clients table with RLS and this policy:

alter policy "Enable read access for all users"
on "public"."clients"
to authenticated
using (true);
alter policy "Enable read access for all users"
on "public"."clients"
to authenticated
using (true);

I call a Node app with the following code:

export const loginRepository = async (email: string, password: string) => {
  const { data, error } = await supabase.auth.signInWithPassword({
    email,
    password,
  });
  if (error) throw new Error(error.message);
  return data;
};
export const loginRepository = async (email: string, password: string) => {
  const { data, error } = await supabase.auth.signInWithPassword({
    email,
    password,
  });
  if (error) throw new Error(error.message);
  return data;
};

When trying to get clients without sign in before, I have a empty array, it's ok.
Then, I log using Postman, and I can retrieve my clients table from everywhere (Postman, browser ...)
I really don't understand the behavior, how it work. Supabase use sessions table, but, why log in from Postman allow me to retrieve the data from everywhere ?
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

Auth session missing
SupabaseSSupabase / help-and-questions
11mo ago
Auth Session Missing!
SupabaseSSupabase / help-and-questions
13mo ago
electron auth session persistence
SupabaseSSupabase / help-and-questions
5mo ago
JWT auth - session undefined
SupabaseSSupabase / help-and-questions
4y ago