diff --git a/.env.example b/.env.example index 1ad3a0f..f37897a 100644 --- a/.env.example +++ b/.env.example @@ -1,7 +1,12 @@ -NEXT_PUBLIC_API_URL=http://localhost:3000 +NEXT_PUBLIC_API_URL= -NEXTAUTH_URL=http://localhost:3000 +NEXTAUTH_URL= NEXTAUTH_SECRET= -DISCORD_CLIENT_ID= -DISCORD_CLIENT_SECRET= +OAUTH_CLIENT_ID= +OAUTH_CLIENT_SECRET= +OAUTH_ISSUER= +OAUTH_AUTHORIZATION_URL= +OAUTH_TOKEN_URL= +OAUTH_USERINFO_URL= +OAUTH_JWKS_ENDPOINT= \ No newline at end of file diff --git a/package.json b/package.json index 6aaaa01..167b7b7 100644 --- a/package.json +++ b/package.json @@ -9,11 +9,14 @@ "lint": "next lint" }, "dependencies": { + "axios": "^1.7.9", "jsonwebtoken": "^9.0.2", + "moment": "^2.30.1", "next": "15.0.3", "next-auth": "^4.24.10", "react": "19.0.0-rc-66855b96-20241106", - "react-dom": "19.0.0-rc-66855b96-20241106" + "react-dom": "19.0.0-rc-66855b96-20241106", + "zustand": "^5.0.2" }, "devDependencies": { "@types/jsonwebtoken": "^9.0.7", diff --git a/src/app/components/Auth.tsx b/src/app/components/Auth.tsx index 59ba5a9..c43e4a2 100644 --- a/src/app/components/Auth.tsx +++ b/src/app/components/Auth.tsx @@ -33,7 +33,7 @@ const Auth = () => { ) : (
-

Welcome, {session.user.name || "User"}!

+

Welcome, {session.user?.name || "User"}!