tursodatabase / libsql-client-rs

libSQL Rust client library can be used to communicate with sqld natively over HTTP protocol with native Rust interface.
MIT License
75 stars 29 forks source link

Add Bearer auth support #1

Closed psarna closed 1 year ago

psarna commented 1 year ago

reqwest and workers backends can now use a LIBSQL_CLIENT_TOKEN env variable (or secret, respectively) to use Bearer auth. Bearer auth is preferred over Basic one, so if both a token and user/pass are present, token is picked.