Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions src/lib/user.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -323,6 +323,7 @@ const authOptions: NextAuthOptions = {
client: {
token_endpoint_auth_method: 'client_secret_post',
},
checks: [],
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

CRITICAL: Disabling all OAuth/OIDC checks via checks: [] may weaken auth security

In NextAuth, checks controls protections like state / pkce / nonce (provider-dependent). Setting this to an empty array disables those validations and can open up CSRF / auth-code injection style risks. If this is required for WorkOS compatibility, please add a rationale (and ideally scope to the minimal required checks) rather than disabling all checks.

}),
// Email provider for magic link authentication using CredentialsProvider
// We use CredentialsProvider because EmailProvider requires a database adapter,
Expand Down