Skip to content

Commit 6861f1f

Browse files
chore: updated secure cookie
1 parent 5df9903 commit 6861f1f

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

app/api/otp/verify/route.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -28,6 +28,7 @@ export const POST = async (req: NextRequest) => {
2828
cookies().set(OTP_SECRET_SECURE, userData.otpSecret, {
2929
expires: Date.now() + ONE_DAY_MS,
3030
httpOnly: true,
31+
sameSite: 'lax',
3132
secure: true,
3233
});
3334
}

0 commit comments

Comments
 (0)