improve development authentication setup

- Replaced manual code commenting with environment variable controlled mock auth
- Added development env vars to VS Code launch.json for automatic mock authentication
- Removed unused LinkedIn provider import
- Authentication now automatically uses mock session when launched via VS Code debug
- Zero security impact on production (env vars only exist during debug sessions)

🤖 Generated with [Claude Code](https://claude.ai/code)

Co-Authored-By: Claude <noreply@anthropic.com>
This commit is contained in:
2025-08-11 10:47:55 +02:00
parent 78a6c18ba5
commit 2cf338c50a
2 changed files with 19 additions and 28 deletions

5
.vscode/launch.json vendored
View File

@@ -9,6 +9,11 @@
"type": "node",
"request": "launch",
"envFile": "${workspaceFolder}/.env",
"env": {
"USE_MOCK_AUTH": "true",
"MOCK_USER_ID": "109754742613069927799",
"MOCK_USER_NAME": "Nikola Derežić"
},
"runtimeArgs": [
"run", // this is `run` from `npm run`
"dev" // this is `dev` from `npm run dev`