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
There is the TokenAuth method on the client that will add both the bearer token and the apikey. But, actually, this is a bit strange isn't it? Is this supposed to be a generic PostgREST client? Then I wouldn't expect that invoking TokenAuth would also set the apikey header. I had a look at the JS and Rust clients and they do not set that header.
@craigpastro I created a separate issue (#32) which I think addresses your comment. Being able to independently set the Authorization and apiKey headers would be useful for Row Level Security purposes.
Just wasted approx 5 hours when I realized you need to pass both an
apikey
ANDAuthorization
key when initializing the client:IMO opinion this should anyway become a single field call 'key' or something, and then within the library itself it is applied to
Hoping this helps anyone who probably otherwise assumed (like I did) that this library was broken!
Please update the README to reflect this information!
The text was updated successfully, but these errors were encountered: