From 0dca836cf5ebef37951bd3765382e2fa526ca579 Mon Sep 17 00:00:00 2001 From: Pierre Ryssen Date: Tue, 10 Mar 2026 14:30:30 +0100 Subject: [PATCH] refactor: add docker-compose in the gitignore --- .env.example | 10 ++++++++-- app/page.tsx | 2 +- 2 files changed, 9 insertions(+), 3 deletions(-) diff --git a/.env.example b/.env.example index 42c21e5..2ff7dc1 100644 --- a/.env.example +++ b/.env.example @@ -12,6 +12,12 @@ DATABASE_URL="postgresql://wyview:wyview@localhost:5432/wyview" NEXT_PUBLIC_PASSWORD=Azerty123 -NEXTAUTH_SECRET=secret +NEXTAUTH_SECRET=unsecretaleatoire NEXTAUTH_URL=http://localhost:3000 -AUTH_SECRET="openssl rand -base64 32" \ No newline at end of file +AUTH_SECRET=secretaleatoire + +# TikTok API credentials +TIKTOK_CLIENT_KEY=******* +TIKTOK_CLIENT_SECRET=******* +TIKTOK_REDIRECT_URI_DEV=http://localhost:3000/api/tiktok/callback +TIKTOK_REDIRECT_URI_PROD=https://marouette.fun/api/tiktok/callback diff --git a/app/page.tsx b/app/page.tsx index f3bce5e..f0a7ef3 100644 --- a/app/page.tsx +++ b/app/page.tsx @@ -37,7 +37,7 @@ export default function AuthPage() { }); if (result?.ok) { - router.push("/dashboard"); + window.location.href = "/dashboard"; } else { setLoginError("Email ou mot de passe incorrect."); setLoginLoading(false);