@fungi.computer/oyster 0.19.14 → 0.19.16

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -35,8 +35,10 @@ export function ownerKey(options) {
35
35
  async authenticate(request, tenant) {
36
36
  const cookies = parse(request.headers.get("Cookie") ?? "");
37
37
  const recognizedCookie = Object.hasOwn(cookies, ownerKeyCookieName);
38
- const bearer = request.headers.get("Authorization")?.startsWith("Bearer ") === true;
39
- if (!recognizedCookie && !bearer)
38
+ const authorization = request.headers.get("Authorization");
39
+ const credential = authorization?.startsWith("Bearer ") === true ||
40
+ authorization?.startsWith("Basic ") === true;
41
+ if (!recognizedCookie && !credential)
40
42
  return { kind: "pass" };
41
43
  const record = await options.keys.get(tenant.id);
42
44
  if (record === null)
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@fungi.computer/oyster",
3
- "version": "0.19.14",
3
+ "version": "0.19.16",
4
4
  "author": "Levi <levi@technomancy.dev>",
5
5
  "description": "Run your own Apps on Cloudflare Workers or celld: installable App Releases, each with its own Durable Object, SQLite database and declared bindings",
6
6
  "type": "module",