File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -45,12 +45,12 @@ export function assertConfig(
4545 if ( ! req . host ) return "NEXTAUTH_URL"
4646
4747 let hasCredentials , hasEmail
48- let twitterProvider
48+ let hasTwitterProvider
4949
5050 for ( const provider of options . providers ) {
5151 if ( provider . type === "credentials" ) hasCredentials = true
5252 else if ( provider . type === "email" ) hasEmail = true
53- else if ( provider . id === "twitter" ) twitterProvider = provider
53+ else if ( provider . id === "twitter" ) hasTwitterProvider = true
5454 }
5555
5656 if ( hasCredentials ) {
@@ -78,7 +78,7 @@ export function assertConfig(
7878 return new MissingAdapter ( "E-mail login requires an adapter." )
7979 }
8080
81- if ( twitterProvider ) {
81+ if ( hasTwitterProvider ) {
8282 return "TWITTER_OAUTH_2_BETA"
8383 }
8484}
You can’t perform that action at this time.
0 commit comments