Skip to content

Commit

Permalink
fix: allow set cookie on verify-totp
Browse files Browse the repository at this point in the history
  • Loading branch information
hyoban committed Jan 17, 2025
1 parent b2ffd5d commit 6b884d1
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion apps/main/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -129,7 +129,10 @@ function bootstrap() {
// handle session cookie when sign in with email in electron
session.defaultSession.webRequest.onHeadersReceived(
{
urls: [`${apiURL}/better-auth/sign-in/email?*`],
urls: [
`${apiURL}/better-auth/sign-in/email?*`,
`${apiURL}/better-auth/two-factor/verify-totp?*`,
],
},
(detail, callback) => {
const { responseHeaders } = detail
Expand Down

0 comments on commit 6b884d1

Please sign in to comment.