You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
I'm transitioning my app from firebase auth to supabase auth. When I use signInAnonymously() the client gets a valid JWT with the authenticated role but all calls to the database fail with permission denied for schema public
To Reproduce
await supabase.auth.signInAnonymously()
await supabase.from("table_name").insert(data)
Expected behavior
Anonymously authenticated users should have the same access to schemas as normally authenticated users
Screenshots
System information
OS: macos
Browser (if applies) N/A
Version of supabase-js: 2.43.2
Version of supabase-cli: 1.167.4
Version of Node.js: N/A
Additional context
Looking at the schema of my local db authenticated has usage permission on public so I'm not sure why I'm getting permission denied
The text was updated successfully, but these errors were encountered:
Hmm OK it turns out that the session is disappearing from the client for some reason. I have a singleton client but somehow shortly after anonymous sign in the session disappears.
🤦 nevermind. I was clearing my mmkv instance (local storage) as part of my new user setup flow. Now that supabase auth is stored in local storage it cleared the session.
Bug report
Describe the bug
I'm transitioning my app from firebase auth to supabase auth. When I use
signInAnonymously()
the client gets a valid JWT with theauthenticated
role but all calls to the database fail withpermission denied for schema public
To Reproduce
await supabase.auth.signInAnonymously()
await supabase.from("table_name").insert(data)
Expected behavior
Anonymously authenticated users should have the same access to schemas as normally authenticated users
Screenshots
System information
Additional context
Looking at the schema of my local db
authenticated
hasusage
permission onpublic
so I'm not sure why I'm getting permission deniedThe text was updated successfully, but these errors were encountered: