Skip to content

Commit

Permalink
fix: verifyOrigin not populated everywhere (#457)
Browse files Browse the repository at this point in the history
* fix: `verifyOrigin` not being populated in some handlers

* chore: changesets
  • Loading branch information
dalechyn authored Aug 1, 2024
1 parent 9905e32 commit 56f4be4
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 0 deletions.
5 changes: 5 additions & 0 deletions .changeset/quiet-gifts-watch.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
---
"frog": patch
---

Fixed an issue where `verifyOrigin` constructor parameter was not populated in some of the handlers.
4 changes: 4 additions & 0 deletions src/frog-base.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -526,6 +526,7 @@ export class FrogBase<
(this.hubApiUrl ? { apiUrl: this.hubApiUrl } : undefined),
secret: this.secret,
verify,
verifyOrigin: this.verifyOrigin,
}),
})

Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down Expand Up @@ -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,
Expand Down

0 comments on commit 56f4be4

Please sign in to comment.