Skip to content

Commit

Permalink
🔧 Update auth config
Browse files Browse the repository at this point in the history
  • Loading branch information
Kesuera committed Dec 8, 2023
1 parent 1434f6d commit 014f04e
Show file tree
Hide file tree
Showing 4 changed files with 13 additions and 12 deletions.
7 changes: 4 additions & 3 deletions .env.example
Original file line number Diff line number Diff line change
@@ -1,13 +1,14 @@
# REST API configuration
REST_API_URL=

# Auth configuration - required in production
AUTH_ORIGIN=
AUTH_SECRET=

# Google configuration
GOOGLE_CLIENT_ID=
GOOGLE_CLIENT_SECRET=
GOOGLE_REFRESH_TOKEN_URL=

# .NET backend runs locally on HTTPS (must be set to 0), for production must be set to 1
NODE_TLS_REJECT_UNAUTHORIZED=

# Authorization secret
AUTH_SECRET=
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ export default defineNuxtConfig({
devtools: { enabled: true },
auth: {
enableGlobalAppMiddleware: process.env.VERCEL_ENV !== 'preview',
origin: process.env.NODE_ENV === 'production' ? 'https://frontend-tag.vercel.app' : 'http://localhost:3000',
origin: process.env.AUTH_ORIGIN ?? 'http://localhost:3000',
},
runtimeConfig: {
restApiUrl: process.env.REST_API_URL,
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@
"@nuxt/content": "^2.9.0",
"copy-to-clipboard": "^3.3.3",
"md-to-pdf": "^5.2.4",
"next-auth": "~4.22.5"
"next-auth": "4.21.1"
},
"husky": {
"hooks": {
Expand Down
14 changes: 7 additions & 7 deletions pnpm-lock.yaml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit 014f04e

Please sign in to comment.