We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent a7d34f9 commit c9e16fbCopy full SHA for c9e16fb
src/core/lib/assert.ts
@@ -16,6 +16,8 @@ type ConfigError =
16
| MissingAuthorize
17
| MissingAdapter
18
19
+let twitterWarned = false
20
+
21
/**
22
* Verify that the user configured `next-auth` correctly.
23
* Good place to mention deprecations as well.
@@ -78,7 +80,8 @@ export function assertConfig(
78
80
return new MissingAdapter("E-mail login requires an adapter.")
79
81
}
82
- if (hasTwitterProvider) {
83
+ if (!twitterWarned && hasTwitterProvider) {
84
+ twitterWarned = true
85
return "TWITTER_OAUTH_2_BETA"
86
87
0 commit comments