From b103872daff87b032082a433713d16b9dee13082 Mon Sep 17 00:00:00 2001 From: Danny Friday Date: Thu, 3 Aug 2023 16:54:08 -0700 Subject: [PATCH] Export extractAuthorizationData for CF Workers (#1447) --- .changeset/young-bulldogs-teach.md | 5 +++++ packages/service-utils/src/cf-worker/index.ts | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) create mode 100644 .changeset/young-bulldogs-teach.md diff --git a/.changeset/young-bulldogs-teach.md b/.changeset/young-bulldogs-teach.md new file mode 100644 index 00000000000..c78947f2f56 --- /dev/null +++ b/.changeset/young-bulldogs-teach.md @@ -0,0 +1,5 @@ +--- +"@thirdweb-dev/service-utils": patch +--- + +Export extractAuthorizationData for CF Workers diff --git a/packages/service-utils/src/cf-worker/index.ts b/packages/service-utils/src/cf-worker/index.ts index f035861a2c5..3ef2786b681 100644 --- a/packages/service-utils/src/cf-worker/index.ts +++ b/packages/service-utils/src/cf-worker/index.ts @@ -73,7 +73,7 @@ export async function authorizeWorker( }); } -async function extractAuthorizationData( +export async function extractAuthorizationData( authInput: AuthInput, ): Promise { const requestUrl = new URL(authInput.req.url);