From c52be9bfa52679f29deef3ea1a2b3ed952e24359 Mon Sep 17 00:00:00 2001 From: dalechyn Date: Fri, 2 Aug 2024 00:43:26 +0300 Subject: [PATCH 1/2] fix: `verifyOrigin` not being populated in some handlers --- src/frog-base.tsx | 4 ++++ 1 file changed, 4 insertions(+) diff --git a/src/frog-base.tsx b/src/frog-base.tsx index 5aead784..f82e034c 100644 --- a/src/frog-base.tsx +++ b/src/frog-base.tsx @@ -526,6 +526,7 @@ export class FrogBase< (this.hubApiUrl ? { apiUrl: this.hubApiUrl } : undefined), secret: this.secret, verify, + verifyOrigin: this.verifyOrigin, }), }) @@ -608,6 +609,7 @@ export class FrogBase< (this.hubApiUrl ? { apiUrl: this.hubApiUrl } : undefined), secret: this.secret, verify, + verifyOrigin: this.verifyOrigin, }), contextHono: c, initialState: this._initialState, @@ -1130,6 +1132,7 @@ export class FrogBase< (this.hubApiUrl ? { apiUrl: this.hubApiUrl } : undefined), secret: this.secret, verify, + verifyOrigin: this.verifyOrigin, }), contextHono: c, initialState: this._initialState, @@ -1167,6 +1170,7 @@ export class FrogBase< (this.hubApiUrl ? { apiUrl: this.hubApiUrl } : undefined), secret: this.secret, verify, + verifyOrigin: this.verifyOrigin, }), contextHono: c, initialState: this._initialState, From b9251e75b3337fba07d28df6241726cdc3b8907d Mon Sep 17 00:00:00 2001 From: dalechyn Date: Fri, 2 Aug 2024 00:44:01 +0300 Subject: [PATCH 2/2] chore: changesets --- .changeset/quiet-gifts-watch.md | 5 +++++ 1 file changed, 5 insertions(+) create mode 100644 .changeset/quiet-gifts-watch.md diff --git a/.changeset/quiet-gifts-watch.md b/.changeset/quiet-gifts-watch.md new file mode 100644 index 00000000..c22233ce --- /dev/null +++ b/.changeset/quiet-gifts-watch.md @@ -0,0 +1,5 @@ +--- +"frog": patch +--- + +Fixed an issue where `verifyOrigin` constructor parameter was not populated in some of the handlers.