Replies: 1 comment
-
Hey — I’ve run into this Those tokens are meant for user authentication and have limited scope. The logs endpoint is an internal/admin endpoint that requires elevated permissions. To fix this, you need to use your service_role key from your Supabase dashboard (Project Settings → API). Make your request with:
That key gives you full access to logs beyond just the last minute. Just make sure you keep it secure and don’t expose it in frontend code — wrap it in a server-side function or edge function instead. |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
Seeing {"message":"jwt malformed"} for requests to analytics/endpoints/logs.all using an OAuth2 token.
I am using the same token for creating edge functions and more via the MCP.
Is this endpoint not available for OAuth tokens?
If so, what should I do if I want more than the latest logs for the past 1 minute?
Beta Was this translation helpful? Give feedback.
All reactions