Pass login token in API requests
This might be an extremely embarrassing question if I'm wrong but I was unable to find a way to pass a login token along API requests. I would have expected there to be a header field that I can use but the documentation doesn't seem to mention anything. I don't have a lot of experience with Python but looking at the code, it seems like the login status is entirely cookie based?
If that's the case then I would like to propose a header field that can be used by API requests to include the login token without having to store cookies.
IIRC, the bepasty-server code currently assumes that a cookie-based session is established.
For a interactive, browser-based session, this is fine.
For automated stuff, you could have a look at how the cli interface deals with this: https://github.com/bepasty/bepasty-client-cli
docs about how to use http basic auth: https://github.com/bepasty/bepasty-server/pull/273/files