Skip to content

Commit

Permalink
fix: next auth not trusting domain
Browse files Browse the repository at this point in the history
  • Loading branch information
james-elicx committed Aug 31, 2023
1 parent 65bb3f3 commit f1b3156
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions utils/auth/next-auth.ts
Original file line number Diff line number Diff line change
Expand Up @@ -34,6 +34,7 @@ const providers = deriveAuthProviders();
const adapter = deriveDatabaseAdapter();

const { handlers: nextAuthHandlers, auth } = NextAuth({
trustHost: true,
useSecureCookies: process.env.NODE_ENV === 'production',
session: {
strategy: 'jwt',
Expand Down

0 comments on commit f1b3156

Please sign in to comment.