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
We should be able to set a different token from our service or anon one.
Is your feature request related to a problem? Please describe.
In cases where our RLS policies are more complex than normal(maybe checking individual user permissions) it is better to set the user token when needed instead of simply using the anon or service one
Describe the solution you'd like
A simple method to change the authorization header is enough
I have not found any documentation on why apiKey is necessary on the storage api, in fact, while testing the api only asks you for an authorization header, that can be any token from the service, anon and user tokens
Feature request
We should be able to set a different token from our service or anon one.
Is your feature request related to a problem? Please describe.
In cases where our RLS policies are more complex than normal(maybe checking individual user permissions) it is better to set the user token when needed instead of simply using the anon or service one
Describe the solution you'd like
A simple method to change the authorization header is enough
Question about apiKey and Authorization
I have not found any documentation on why apiKey is necessary on the storage api, in fact, while testing the api only asks you for an authorization header, that can be any token from the service, anon and user tokens
Is it necessary to have a SetApiKey method?
I decided to take it out of my PR, but if it is necessary to have I'll added it back
More context
postgrest-go has implemented something similar
The text was updated successfully, but these errors were encountered: