Skip to content

Commit

Permalink
fix(auth): trustHost=true
Browse files Browse the repository at this point in the history
  • Loading branch information
songkeys committed May 22, 2024
1 parent 3246d11 commit c3da2a8
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions frontend/.env.ci
Original file line number Diff line number Diff line change
Expand Up @@ -2,6 +2,7 @@
POSTGRES_DATABASE_URL=postgresql://postgres:password@db:5432/openagent

# allowing users to sign in with third-party services
AUTH_TRUST_HOST=true
NEXTAUTH_URL="http://localhost:3000"
NEXTAUTH_SECRET="random-secret-for-ci"
AUTH_GOOGLE_CLIENT_ID="client-id"
Expand Down
1 change: 1 addition & 0 deletions frontend/src/lib/auth/options.ts
Original file line number Diff line number Diff line change
Expand Up @@ -86,4 +86,5 @@ export const {
session: {
strategy: "database",
},
trustHost: true,
});

0 comments on commit c3da2a8

Please sign in to comment.