Merge pull request #17 from Portabase/feat/guard-cookie

fix: bad cookie name with https
This commit is contained in:
Théo LAGACHE
2026-01-16 11:34:11 +00:00
committed by GitHub
4 changed files with 7 additions and 5 deletions
+2
View File
@@ -41,3 +41,5 @@ public/uploads/*
private/uploads/*
/.env
certificates
+2 -2
View File
@@ -26,5 +26,5 @@ keywords:
- web-ui
- agent
license: Apache-2.0
version: 1.1.12
date-released: "2026-01-11"
version: 1.1.13-rc.1
date-released: "2026-01-16"
+2 -2
View File
@@ -8,8 +8,8 @@ import {CardAuth} from "@/features/layout/card-auth";
export default async function GuardPage() {
const cookieStore = await cookies();
const token = cookieStore.get("better-auth.two_factor")?.value;
const token = cookieStore.get("better-auth.two_factor")?.value || cookieStore.get("__Secure-better-auth.two_factor")?.value;
if (!token) {
redirect("/login");
}
+1 -1
View File
@@ -1,6 +1,6 @@
{
"name": "portabase",
"version": "1.1.12",
"version": "1.1.13-rc.1",
"private": true,
"scripts": {
"dev": "next dev --turbopack -p 8887",